I would like to update the CallLog.Calls.TYPE field of the first entry in the Android Call Log from MISSED to INCOMING. I have read b
If you update your code above and replace the line:
ContentUris.withAppendedId(CallLog.Calls.CONTENT_URI, 0)
with this line:
Uri.parse("content://call_log/calls")
It works. I don't know why, but something is not correct with the content URI.
example:
ContentValues newValues = new ContentValues();
newValues.put(CallLog.Calls.TYPE, CallLog.Calls.INCOMING_TYPE);
newValues.put(CallLog.Calls.DURATION, 50);
int result = OsmoService.context.getContentResolver().update(
Uri.parse("content://call_log/calls"),
newValues,
null,
null);