Search code examples
androidbroadcastreceivercalllog

Pop up notification when having missed calls


I am working on an android app.

I need to popup a message every time I have missed called.

I am retrieving missed calls using CallLog.Calls.CONTENT_URI.

I need some advices. How to do this?


Solution

  • 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.

    AND THEN show notification