problem in deleting Call Log

by shahzad ahmad » Wed, 18 Feb 2009 21:39:13 GMT

Sponsored Links

I can easily delete the whole call log with following code


I can query a particular call log with following code

            delUri = Uri.withAppendedPath(CallLog.Calls.CONTENT_URI, "2");

            Cursor cursor =

But i always get unsupported function error when i try to delete a single
call log


Please guide me how to resolve this issue .



problem in deleting Call Log

by Chandra Mouli » Wed, 18 Feb 2009 21:49:43 GMT

 Try cursor.deleteRow() on the cursor you got from query.

G . chandra mouli


Sponsored Links

problem in deleting Call Log

by shahzad ahmad » Wed, 18 Feb 2009 23:14:04 GMT

 I'm using SDK 1.0 r2 . This fucntion cursor.deleteRow is deprecated in
latest SDK


problem in deleting Call Log

by david liu » Thu, 19 Feb 2009 01:35:31 GMT

 There are three paremeters for delete(delUri,null,null),  I think the first
one is about the table which you want to operate, the second is Where
clause, here you need put the selecting condition (such as, rowId = 2), the
third one we can use null.
You also can refer to the instruction of this method in the package

On Wed, Feb 18, 2009 at 11:13 PM, shahzad ahmad


problem in deleting Call Log

by Gulfam » Fri, 06 Mar 2009 19:40:01 GMT


  I am facing the same problem for deleting perticullar call log
any one can help me i have tried as david liu said but not able to



Other Threads

1. How to rename the File in the Android

Hello Android Developers,

I am new to Android Development

I want to rename the file f1 with the file f2. For this i used the
following code but it didn't work there

File f1=new File("myFirstFile");

File f2=new File ("mySecondFile");

boolean renameSuccess=f1.renameTo(f2);

Log.d("Rename Success value :",renameSuccess);
//but it returns the false value Please give me the right way to do

Thanks in Advance....


2. Releasing Updates To My App - Is It Patching Or Replacing?

If I publish an update to my app on the Android Market, will the app
only "patch" (or only update changes to current application) or will
it just replace the old application with the updated one?

 The reason is because for my app I need the user to retain some
information (such as a database) on their phone that is gathered from
the user on the app's first setup and not have to ask the user to
repopulate this data on every update.


3. Android Emulator Proxy Issue, strange one

4. Problem with video streaming .... Please Help

5. Android error and how to create library?

6. ? about sending emulator events

7. Single activity tabs