Search code examples
androidtelephonymanager

How to receive numbers pressed on a keypad of calling party while ringing in Android?


I am working on an android app and i wanted to know if it is possible to receive the numbers or DTMF tone or any such related data at the called party's phone, that the calling party is typing on his/her phone while the phone of the called party is ringing.

Just to make the question more clearer, consider this scenario with two people A and B :

  1. Caller A is calling B.
  2. B's phone is ringing.
  3. A types a sequence or a single digit on his phone while it is still ringing.
  4. Those digits are received at B's phone.
  5. Based on what digit / what sequence it is, an action will be triggered at B's phone (Through my app).

I just wanted to know if the above scenario or anything equivalent or remotely like the same is possible.

Thank you


Solution

  • No. First, we have no access to the in-call audio stream, except perhaps if the phone is in speakerphone mode. Second, I am not aware of any Android device that plays the audio of the incoming call over top of the ringing where the user has not picked up the phone.