How to let Android user to decide whether to answer a call or not?

ぐ巨炮叔叔 提交于 2019-12-08 08:17:43

问题


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.

来源:https://stackoverflow.com/questions/5744720/how-to-let-android-user-to-decide-whether-to-answer-a-call-or-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!