I Want delete last outgoing call from callog when call has end.
Cursor c=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,null,null,CallLog.Calls.DATE + " DESC");
hear i got the last callog but how to delete it??
My sample code in mycallreceiver:
if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_IDLE))
{
Cursor c=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,null,null,CallLog.Calls.DATE + " DESC");
context.getContentResolver().delete(Uri.parse(c),null,null);
}
Thanks in andvance..
