I'm writing a small app where I don't want the current activity to automatically switch to the phonecall app upon an incoming call. I would like the user to decide whether to do it or not from my app UI.
I know I can listen to state changes in the telephony but I don't know how to prevent from the phonecall app to take focus.