Sri Sri
Sri Sri

Reputation: 3109

How to terminate a call programmatically under Android?

I am using the following code for dialing programmatically under Android.

try {
    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:123456789"));
    startActivity(callIntent);
} catch (Exception exception) {
    log.e("dialing-example", "Call failed", Exception);
}

But how can I terminate the call programmatically?

Upvotes: 4

Views: 828

Answers (1)

Ben Williams
Ben Williams

Reputation: 6167

You can't terminate in progress calls programatically.

Upvotes: 3

Related Questions