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. I can't run m3 simulator after I test 0.9 simulator

Hi All,
  I decompressed the 0.9 SDK in another directory. After I had run the
simulator in 0.9 SDK,  I found my m3 simulator didn't work, it stayed
in red eye, Do you know how to solve this problem? Thanks.



2. 0.9 and simple database management issue ?


I am gonna watch. I didn't know that.




3. robotics... script your android Options

4. problem installing ADT 0.4.0

5. convert db from mysql to sqlite

6. .9 SDK Questions

7. Android remote-control for Amarok