How to distinguish between a missed call and a failure to answer?

I am developing an application in which I need to distinguish between a call rejected by the receiver (by pressing the dial button) and one that does not answer and is disconnected by those who dial the number. Is there something that makes the differentiation since they both fall into the missed call category in Android?

+7
source share
1 answer

You lack details; please inform.

Do you mean the call log provider android.provider.CallLog.Calls ? There are only 3 types of calls. Can you provide data on all fields for such a call log entry?

The only other way (we know) is to look at the status of the phone (via IntentReceiver ) and track the transitions yourself. Most likely, switching from Ringing to Idle would mean that the call was rejected and not answered, in which case he would move Ringing to Offhook.

+2
source

All Articles