Thanks for your reply. I have tried your solution, but it still doesn't work. I also have tried with "number=xxx" to delete the contact, just as the code, it could delete nothing, which will return 0 row is deleted.
Regards, Stanley On Jul 17, 5:03 pm, Zsolt Váradi <karma...@gmail.com> wrote: > Hi, > > On Fri, Jul 17, 2009 at 10:59 AM, Stanley.lei<xiaofeng.lei...@gmail.com> > wrote: > > > Hi, > > > We are writing the application about accessing the contacts on SIM, > > including add, query, and delete. The operation "add" works well, > > while the query operation will return all records on SIM although I > > have added the selection condition, such as "name=xxx", and the delete > > operation doesn't work at all. The code is list as following, could > > any one give me the suggestion on it? > > > Any reply will be appreciated. > > I've never used SIM contacts in Android, but shouldn't you use "tag" > instead of "name" in the query and the delete methods? (Just like you > did while adding.) > > Regards, > Zsolt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---