I want to get the particular call type alone and delete it from the call log in android.
while (cursor.moveToNext()) {
String queryString1= "CallType=’" + CallLog.Calls.MISSED_TYPE + "‘";
Log.v("CallType", queryString1);
if(CallLog.Calls.TYPE.equals("missed")) {
sb.append("Number "+CallLog.Calls.NUMBER+"\nName "+CallLog.Calls.CACHED_NAME);
}
}
getContentResolver().delete(UriCalls, CallLog.Calls.MISSED_TYPE, null);
This is a code i ve tried for missed call,because of Missed_type is int, i got an error "The method delete(Uri, String, String[]) in the type ContentResolver is not applicable for the arguments (Uri, int, null)"
Give me some tips to delete the particular call type from log