I want to answer a phone call. I found the intent android.intent.action.ANSWER
but it seems that the only effect that I obtain is an ActivityNotFoundException. Why? Is it a deprecated intent? How can I achieve answer? I have also heard about the "telnet technique". What is that?
Thanks
Answer intent should be sent to the InCallScreen.
This works from Android 2.2 to 4.0 and now after adding the try catch to the last line it works for 4.1.2 and 4.2 Frankly speaking dont know how it works but it works for me.
This is working for me in Android 4.1.2 as well as i have tested on 4.2 This still gives an exception which is handled.
you can also send call keyevent to answer calls but the device needs to be rooted
answer calls :
End calls :
It is possible to answer an Incoming Phone Call. Check this out : here
this event dose not work. you should use:
that emulate a bhavior of press key.
The approach used by simulating a BT handset does not work with all Android Versions and with all Devices as BT handset handling may be different.
The best approach verified in lot of devices and Android versions consists in emulating the pressure and release of the Call button in the Dialer:
You can do that also by sending Shell command "input keyevent 5" via adb or via Runtime.exec but in my case wasn't working for all devices