tags:

views:

501

answers:

2

Hi all,

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

+3  A: 

It's not possible, check this thread for further information.

systempuntoout
Ok, saw the thread...but why there is that intent? and it is not even deprecated!
Matroska
I know, if you google for ACTION_ANSWER, you would find many topics about people going crazy to find a way to autoanswer a call. This feature has surely been shut off by Android staff (security reason?).
systempuntoout
A: 

this event dose not work. you should use: Intent i = new Intent(Intent.ACTION_MEDIA_BUTTON); KeyEvent event =new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_HEADSETHOOK); i.putExtra(Intent.EXTRA_KEY_EVENT, event ); context.sendOrderedBroadcast(i, null); that emulate a bhavior of press key. BR,

midoub
Does it actually work? I have not tried it yet. Did you? Thanks
Matroska