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?
-
have you found the solution? – Andriy Antonov Feb 18 '19 at 13:34
-
yes, already Implemented and works fine :) – Aniket-Shinde Feb 18 '19 at 16:49
-
can you please share code with me? here is my email: pro100svitlo@gmail.com – Andriy Antonov Feb 18 '19 at 16:54
-
lets talk on Skype : aniket.shinde2412 – Aniket-Shinde Feb 21 '19 at 09:51
3 Answers
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.

- 1,360
- 2
- 15
- 29
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
-
Yes i have implemented while "program", but i want to send DTMF while the call is active. is it impossible to do that? – Aniket-Shinde Dec 28 '15 at 11:54
-
-
-
-
Actually what is your exact requirement,the receiver end want to hear your DTMF tone? – User6006 Dec 28 '15 at 13:06
-
basically i am calling my server from my application, and the phone call is active on background of my application. so now i want send dtmf tones in active call so that server can catch them and work accordingly. – Aniket-Shinde Dec 28 '15 at 13:12
-
1Thank you for you feedback, if we can root the device and use some open source or ndk will it work?? – Aniket-Shinde Jan 07 '16 at 08:26
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.

- 1
- 1