Search code examples
androidbroadcastreceiver

handle a missed call with broadcast receiver in android


Is there a way to handle missed calls in android? I came across CALL_STATE_CHANGED action many times. But how can i check specifically whether it's a missed call? What I want is to do some action when the user misses a call. How can I do this? Do I need to check call logs after every call and find out whether there is a missed call?


Solution

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