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
for example CallLog.Calls.CACHED_NAME
private void updateCachedName(int id, @NonNull String name) {
ContentValues contentValues = new ContentValues();
contentValues.put(CallLog.Calls.CACHED_NAME, name);
if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.WRITE_CALL_LOG) == PackageManager.PERMISSION_GRANTED) {
getContext().getContentResolver().update(CallLog.Calls.CONTENT_URI, contentValues, CallLog.Calls._ID + "=" + id, null);
}
}