Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected value of Android CallLog.Calls TYPE

I have an Android (2.x) app that read call logs from CallLog.Calls.CONTENT_URI.

Recently I got an error report that get an unexpected value from TYPE field. I assume in the source code that the values should always be 1, 2, 3 (CallLog.Calls.INCOMING_TYPE, CallLog.Calls.OUTGOING_TYPE, and CallLog.Calls.MISSING_TYPE repectively)

Unfortunately I don't have information about the actual value I got. My problem is, what are the possible values of the TYPE field beyond the above three? The Android javadoc explicitly stated "The type of the call (incoming, outgoing or missed)"

like image 499
Herman Cheung Avatar asked Mar 17 '11 10:03

Herman Cheung


1 Answers

There are more types outside of the standard Incoming(1), Outgoing(2) and Missed(3). So far I have encountered 4 (VoiceMail), 5 (Rejected) and 6 (Refused List).

like image 181
a4p-jms Avatar answered Nov 10 '22 00:11

a4p-jms