I'm looking to build an android app that automatically accepts an incoming call, and once it does dial the #1 on that call.
So far, I am using the TelecomManager to accept the phone call which works great. Once the call has been answered however, it seems like I am unable to use the keypad programatically produring the call.
I have tried launching various intents with data but all of them seem to start a new call putting the current on hold or launching the dialer which doesn't work for the current call.
The latest intent I've tried is:
Intent call = new Intent("android.intent.action.CALL",
Uri.parse("tel://2"));
startActivity(call);
I've also tried the keypad launch but that is a different keypad than the one used in the call.
As stated, this just begins a new call. Pretty much imagine a lobby where you need to press 1 to continue, how would I go about doing that?
This is not the same as dialing a number and using the , symbol as a wait method, instead I accept the call and need to type the number 1 for the system.
Thanks so much!