How delete a particular call log from call log list

Put your problem here if it does not fit any of the other categories.

How delete a particular call log from call log list

Postby Gulfam Hassan » Thu Mar 12, 2009 8:36 am

Hi,

I have deleted whole call log by the following statement
context.getContentResolver().delete(CallLog.Calls.CONTENT_URI,null,null);

but i am facing problem to delete particular call log from call log list by the following code any one can help me.
if any one have successfully delete particular call log please change in my following code i want to delete that numbers form call log that starts with + or 00. its very urgent me.

Uri delUri = Uri.withAppendedPath(CallLog.Calls.CONTENT_URI,"");
Cursor cursor = context.getContentResolver().query(delUri,null,null,null,null);

context.getContentResolver().delete(delUri,"_id="+cursor.getCount(),null);

Thanks & Regards,
Gulfam
Gulfam Hassan
Freshman
Freshman
 
Posts: 4
Joined: Wed Feb 18, 2009 1:24 pm
Location: Pakistan

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 17 guests