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 us开发者_StackOverflow社区er 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.
精彩评论