What is phonestateintentreceiver.notifyPhoneCallState used for?

主宰稳场 提交于 2019-12-21 04:23:06

问题


Can anyone tell me what is the use of phonestateintentreceiver.notifyPhoneCallState?


回答1:


I know it is too late to post an answer here, may be helpful for guys who refer this in future.

notifyPhoneCallState has to be called if your application wishes to receive a notification about an incoming phone call.




回答2:


Well... The first comment in the class says

DO NOT USE THIS CLASS: Use android.telephony.TelephonyManager and PhoneStateListener instead.

So maybe look into those other classes.



来源:https://stackoverflow.com/questions/6825794/what-is-phonestateintentreceiver-notifyphonecallstate-used-for

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