Send a Voice data During A call - android

Am in the feasibility study of an app which enables an automated message like, "I'll pick up the call in a second. Please wait.” or so as the user sets, without hanging up the call. So as to enable the user to get time to pick up the call if in case he is busy and also alerts the caller to be patient till the phone gets picked up.
The problem is I want to send it as voice data. Is it possible to send without attending or hanging up the call? Is it possible to send a voice data not as MMS!!!?????

According to what I suggested..
1>Pick the call intent when actually you got the call on you phone
You can find the helpful links over
here,
here
and here
2>have some prerecorded MMS or some SMS.
3> use threads sleep method to wait for some time(the time after which you actually want to send the informatory message to the caller).
4> do your job here to send the message to the caller in the background thru ur app.

Related

how to make android app always listen to the server

I want to write an app that whenever user 1 touches the "buzz button" in the app,
immediately user 2's phone vibrates.
I have written the app code and when user 1 clicks on the button, a request sends to the server via post method and the database updates.
so I can send the vibrate request to the sever.
but what should I do to force the app always listen to the server that when a request sent to it, phone vibrates.
And if you recommend any other ways please share with me!
I also need to store the buzz history in a SQL
To manually handle background process use Service:
https://developer.android.com/guide/components/services
And when event occurs use Broadcast:(to send events to other Fragment/Activity/Application)
https://developer.android.com/guide/components/broadcasts
to hear the broadcast events Register it to Receiver:
https://developer.android.com/reference/android/content/BroadcastReceiver
JobScheduler can also be used in modern android applications:
https://developer.android.com/reference/android/app/job/JobScheduler

Race issue with reading CallLog from provider

Just a bit of app background, this app allows users to click on a number from the application and redirects it to the phone app.
And once the call is done, it will redirect the user back to the app then it retrieves the call information of this particular number (such as timestamp, duration, etc)
However, I come across a race issue where I don't get the latest call log on some phones; meaning Android writes the call log after the app reads the CallLog provider (I can't be certain for how big this window gap).
To put this in simple technical flow:
User click the phone number on the app
Broadcast receiver is triggered
App start Phone activity
Call ends after some period
Broadcast receiver listen to the event
Get call details
With this in place, is there some steps that I missed? or do you have a better solution to handle this?
Thanks.

Fetch and parse USSD response data

I am trying to parse USSD response by carrier network.Found a link https://github.com/alaasalman/ussdinterceptor
but it does not support for 4.2.2 and above. Is there any api or method to attain such?
Finally able to get response, Basically a background "Accessibility Service" is running which receives callback by the system whenever system accessible events are fired and app filter out the event when alert dialogue after calling USSD which in our case "android.app.AlertDialog" is shown and at this instance we can retrieve the data sent by the operator.
"Accessibility Service" for particular app needs to be enabled manually by the end user not programmatically by code because of security purpose mentioned by android.

How to send data to particular user?

I am working on application were i need to send some data to specific user without much of delay.
Actualy I have more then 1000 users who are online out of those I want to select one user and send the data to him only.
I had two solution
1.current implementation=>
So far I am using push notification for this purpose I get the user's device Id and send notification to him but problem is push notification(sending/receiving) depend on my server and GCM
server so it get delayed sometime(I observed sometime it gets delayed by 5 min also).
2.Not implemented=>
Another option is to run thread continuously to check any msg is arrived, if arrived check if whether is meant for same user or not,if he is targeted user then show the data else discard .But here also problem is even if this msg dose not belong to that user one need to check the condition and then discard.

capture the Sms exactly before being sent

I’m trying to develop an application to do some manipulation (compression and security matters) on the outgoing Sms regardless of the composer application. The main challenge is that I cannot capture the Sms exactly before being sent. For instance the user compose the message body using Go Sms Pro and when the send button is pressed , right before the sms is actually sent we capture it and do the compression and security matters on .
Any solution or replacement idea appreciated.
Starting with KitKat, the SMS content provider has been opened up (finally): http://developer.android.com/about/versions/android-4.4.html
To make this work with previous versions of android, you could set up a content observer to watch content://sms/, query the appropriate tables in that database, and then do whatever you like to erase the message before it goes out. This is just a thought mind you, but whatever you do will likely involve using this method.
This is not possible, short of via your own custom build of the Android OS. You have no ability to intercept, let alone modify, the calls from an arbitrary app via SmsManager to the OS to send an SMS message.

Categories

Resources