i wish to end an incoming call programmatically through my app. after searching i got the code which uses com.android.internal.telephony but says it wont work for versions higher than 2.3. i got the code for attending a call through key press event
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);
is there any similar method available for ending a call?? plz help