tags:

views:

599

answers:

2

Hi,

There is way to allow the application to make a phone call using

startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(toDial)));

My question is, Is there any way to end the phone call through application, More specifically I need to try like end the call as soon as i get the call.

Cheers, Vinayak

+4  A: 

This is not possible, as it would be a security violation.

CommonsWare
+1  A: 

Here is an open issue ("reviewed and accepted") for the ability to programmatically reject a call on the standard framework. Of course, if you modify the framework you can do this sort of thing already: CyanogenMod includes a modified Phone.apk with a blacklist feature.

Chris Boyle