Hi, 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 delete
Regards, Gulfam On Feb 18, 8:22 pm, david liu <[email protected]> wrote: > 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 > <[email protected]>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 <[email protected]>wrote: > > >> Try cursor.deleteRow() on the cursor you got from query. > > >> On Wed, Feb 18, 2009 at 7:09 PM, shahzad ahmad < > >> [email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---

