I am developing an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application.
I've tried using Intent.ACTION_CALL from an existing activity:
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber));
startActivity(callIntent);
But stopping the call seems to be disallowed through the API.
Can you suggest some workaround?
For example: enabling airplane mode during the call? Just an example; this hack didn't work for me.