Question

I have an application that performs a phone call, but when I send dial directly, the application is in the background and displays the screen of the android default phone call, it must not happen, because when the phone call is made, I need to trigger commands that are in my application. If anyone knows of a possible solution. Thank you. Below is the my method used to perform a phone call.

private void call() {
try {
    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:123456789"));
    startActivity(callIntent);
} catch (ActivityNotFoundException activityException) {
     Log.e("Dialing", "Call failed", e);
}

}

Was it helpful?

Solution

Hope I got your question right. If you are trying to create an app to replace default phone call handling app, then I guess you should know that it's not a cake walk.

Firstly let me make it clear that you simply can't create a phone app to replace default app.

If you really want to do it then you need to get the Android source code, recompile it by adding your phone app and flash it on a rooted device.

OTHER TIPS

Shortly, you cannot do "stealth" calls without dialer showing up.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top