[英]Pop up notification when having missed calls
I am working on an android app. 我正在开发一个android应用程序。
I need to popup a message every time I have missed called. 每当我想念来电时,我都需要弹出一条消息。
I am retrieving missed calls using CallLog.Calls.CONTENT_URI
. 我正在使用
CallLog.Calls.CONTENT_URI
检索未接来电。
I need some advices. 我需要一些建议。 How to do this?
这个怎么做?
implement brodcst receiver and for that use I suppose you could use PhoneStateListener to listen for call state change from CALL_STATE_RINGING to CALL_STATE_IDLE which indicates the phone was not picked up. 实现brodcst接收器,为此,我想您可以使用PhoneStateListener来侦听从CALL_STATE_RINGING到CALL_STATE_IDLE的呼叫状态更改,这表明电话没有被拿起。
AND THEN show notification 然后显示通知
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.