3

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?

Aniket-Shinde
  • 213
  • 3
  • 9

3 Answers3

1

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.

Andriy Antonov
  • 1,360
  • 2
  • 15
  • 29
0

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

Community
  • 1
  • 1
User6006
  • 597
  • 4
  • 21
-2

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.