Is it possible for an Android App to interrupt a phone Call, or take the Foreground? I would be interested in this whether or not the device was rooted.
I understand this is an unusual request, although it is for a specialty project.
Is it possible for an Android App to interrupt a phone Call, or take the Foreground? I would be interested in this whether or not the device was rooted.
I understand this is an unusual request, although it is for a specialty project.
Surprisingly yes. There is a endCall method in com.android.internal.telephony.ITelephony (you need to either compile with the right classes in your compile path or use reflexion to get to it)
Your service (running in the background) can send an Intent which will be processed by system and will bring an application (which handles this intent) to the foreground. I am not sure whether it will end a call or not.