Android : how to stop listening a PhoneCallListener? [duplicate]

荒凉一梦 提交于 2019-12-04 07:00:14

问题


Possible Duplicate:
Android : why PhoneCallListener still alive after activity finish?

i'm making a call and using a phone call listener to restart activity when phone state back to IDLE . but after i finish the activity , phone call listener still running, therefore when user make own call and hang-up , my activity bring up again !!


回答1:


Use LISTEN_NONE as parameter to listen method to stop listening for updates.



来源:https://stackoverflow.com/questions/11667209/android-how-to-stop-listening-a-phonecalllistener

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