誰能告訴我什麼是「phonestateintentreceiver.notifyPhoneCallState」的用法?phonestateintentreceiver.notifyPhoneCallState用於什麼目的?
謝謝。
誰能告訴我什麼是「phonestateintentreceiver.notifyPhoneCallState」的用法?phonestateintentreceiver.notifyPhoneCallState用於什麼目的?
謝謝。
嗯......這個班的第一個評論說
不要使用這個類:使用android.telephony.TelephonyManager和PhoneStateListener代替。
所以也許看看那些其他類。
感謝Jon7的回答,但實際上我只想知道這個特定類的用法。我會記住你的建議。謝謝 – anddev
我知道現在發佈答案爲時已晚,可能對未來提及此問題的人有所幫助。
如果您的應用程序希望收到有關來電的通知,則必須調用notifyPhoneCallState。
這被稱爲接收有關來電的通知。 –