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
"android.database.sqlite.SQLiteDatabase".

On Wed, Feb 18, 2009 at 11:13 PM, shahzad ahmad
<shahzad.s.ah...@gmail.com>wrote:

> I'm using SDK 1.0 r2 . This fucntion cursor.deleteRow is deprecated in
> latest SDK
>
> On Wed, Feb 18, 2009 at 6:49 PM, Chandra Mouli <chandra...@gmail.com>wrote:
>
>> Try cursor.deleteRow() on the cursor you got from query.
>>
>>
>>   On Wed, Feb 18, 2009 at 7:09 PM, shahzad ahmad <
>> shahzad.s.ah...@gmail.com> wrote:
>>
>>>  Hi,
>>>
>>> I can easily delete the whole call log with following code
>>>
>>>
>>>
>>> getContentResolver().delete(CallLog.Calls.CONTENT_URI,null,null);
>>>
>>>
>>>
>>> I can query a particular call log with following code
>>>
>>>             delUri = Uri.withAppendedPath(CallLog.Calls.CONTENT_URI,
>>> "2");
>>>
>>>             Cursor cursor =
>>> getContentResolver().query(delUri,null,null,null,null);
>>>
>>> But i always get unsupported function error when i try to delete a single
>>> call log
>>>
>>>             getContentResolver().delete(delUri,null,null);
>>>
>>>
>>> Please guide me how to resolve this issue .
>>>
>>> thanks,
>>> shahzad
>>>
>>>
>>>
>>>
>>> --
>>> G . chandra mouli
>>>
>>>
>>>
>
> >
>

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

Reply via email to