I have developed android application which call the other person on button click, but now i want to send dtmf tones from application to that outgoing call when ever i need. so how to do that?
Actually it's possible. It's not so obvious and not so elegant. But it works :)
In my project I requested permission for accessibility service. It gives me possibility to programmatically emulate clicks on the screen. Then I get the screen coordinates for the 'open keyboard' button and all number buttons which I need to press (tones which needed to be send).
Then it's super easy - catch income call with receiver, make small delay and then run sequence of emulated clicks.
Tada 🎉🎉🎉
In case someone need code - I can share it.
You can't send DTMF tones during an active call, but you can send them when you "program" them when you initiate the call. see the following post: https://stackoverflow.com/a/12986066/475472
Actually DTMF possible for key when call alive that time manual key touch and same will send to receiver.
we also check it on embedded gsm module and it will in receiving mode and DTMF enable and after calling when we press any key it will send to receiver side.
Related
I've been searching for over a week now with no clear solutions.
We are building an ap that can make VOIP calls. The current implementation uses AudioManager.requestAudioFocus to tunnel a voice call over a bluetooth headset or carkit, and can uses the AudioManager state to accept incomming calls or hangup ongoing calls when the accept/hangup button on a headset is pressed. This all works fine.
However, when connected with a carkit that has both an accept and hangup button, the current implementation does nothing when the accept button on the carkit is pressed for an incoming voip call and accepts the call when the reject button is pressed. The carkit display also shows no incoming call.
I want to make the carkit react to our voip app identical as how it reacts to an incoming native call but I can't find anywhere how to do that. From what I've found I believe I need to implement a Bluetooth HFP server on the phone side, and use reflection to access hidden Android API's for that.
Can anyone point me to an example of how to do that? All implementations I can find already do what we do or even less (I looked at the Signal code).
I know this question has been asked many times here on stack , but I would like to confirm this as i need to be sure off . Can we pass DTMF tone using our custom dialer?
I found one very interesting link on git and i managed to setup the code and able to make build .
here is the link of apk :-
https://www.dropbox.com/s/r12qewmz659bf2j/DTMF_demo.apk?dl=0
And the code from where I generate the above build :-
https://github.com/rajeshincorp/UD_SendDtmfToneOverActiveCall
I need your guidance here
Regards.
I tried this and I could sent a DTMF tone in the beggining of the call. If the call was already active, I could not send the DTMF tone, only sending, starting the call. You can send "," to delay the caracters sent, for example, to interact with certain interact voice response.
I want to achieve the following in android.
When userA make call to userB.
when userB press any key during call on number pad then userA can get notification about users selected button.
Is it possible?
by using gsm call the feature you want doesn't have any api support. But you can try any of the following
Case 1:
when a number key is pressed during call then a dtmf tone is send. try if you can somehow decode the dtmf tone. As there is no recording option in android during call you can try setting speakerphone on.. ( i haven't tried this, so not sure fully)
For this you can see this project
Case 2
Create another channel over network. create server client mechanism to register each number in your server. whenever two calls of two registered users are made send data over network.
you can see a similar apps thruto
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.
I would like to know whether this is actually possible in Android?
When Android phone receives an incoming call from a specific number the phone's ringing should stop and also the screen should not blink. What I mean is the user should not be able to know that there was incoming call, but actually there was.
I do not want to delete any call logs, just to stop sound on incoming call from a specific number and that too at a specific time.
Can someone let me know if this is actually possible?
When Android phone receives an
incoming call from a specific number
the phone's ringing should stop and
also the screen should not blink. What
I mean is the user should not be able
to know that there was incoming call,
but actually there was.
Fortunately, this should not be possible from the SDK. You can be notified that a phone call comes in, but I do not believe you can stop the ringtone, and I am really sure you cannot stop the in-call screen from appearing.