Reputation: 3459
In the snippet below, I am trying to read call logs and print their call type
Cursor cursor = context.getContentResolver().query(Calls.CONTENT_URI, ...);
while (cursor.moveToNext()) {
int callType = cursor.getInt(cursor.getColumnIndex(Calls.TYPE));
Log.d("callType", callType);
}
In some cases, I get values not listed in the official docs. Does anyone know what these callTypes mean?
10
COMIO:
OPPO:
Realme:
Xiaomi:
20
OPPO:
Realme:
100
Realme:
1001
PANASONIC:
Upvotes: 2
Views: 575
Reputation: 558
For my OnePlus device the following codes are for:
So I can only assume that the other codes like 10/20 might be for the same purpose but for other manufacturers. To bad that the codes are not documented and implemented in the android libs.
Upvotes: 0
Reputation: 319
I am able to explain the following additional call type constants: 1000, 1001, 1002
In my case the call type constants above are used for IMS call statuses in the calllog table.
If possible, check the android source for the firmware you see the extra codes coming from in core/java/android/provider/CallLog.java. Hope this helps! It's unfortunate that this is not well-documented
Upvotes: 1