I'm trying the whole call log  using following code

int deleted_rows = cur_context.getContentResolver().delete
(CallLog.Calls.CONTENT_URI, null,null);

The deletion is successful and whole call log is emptied but
deleted_rows always contain 0. Is this a bug in android ?

the following calls always work fine and return value is also correct

int deleted_rows = cur_context.getContentResolver().delete(Uri.parse
("content://sms"), null,null);
int deleted_rows =cur_context.getContentResolver().delete
(People.CONTENT_URI, null,null);

I testing on SDK version 1.0 using emulator.Please let me know if
there is any issue in my code and is this android bug?


thanks,
shahzad

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to