deleting whole call log

by shaz » Fri, 19 Dec 2008 03:03:40 GMT

Sponsored Links
 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?



deleting whole call log

by shahzad ahmad » Fri, 19 Dec 2008 17:22:41 GMT

 any help ?


Sponsored Links

Other Threads

1. How to Get the Top Activity's Name?

As the subject.

2. How to Check Application Launched?

    I'm writing an android software testcase, but I don't kone how to
check whether the application is launched or not after I have clicked
the icon.
    Anybody can give me some advices?


3. MetaKeyKeyListner.getMetaState()

4. Computational cost of calling getReadableDatabase or getWriteableDatabase?

5. Create "always running" app

6. Notalgila Android OHD

7. Remote erase