ContentResolver resolver = this.getContentResolver(); resolver.delete(RawContacts.CONTENT_URI, null, null);
I can delete the contacts in the phone, but i can not delete the data in the databases. 2010/8/2 Mark Murphy <mmur...@commonsware.com> > On Mon, Aug 2, 2010 at 6:11 AM, Bin Dou <doubin...@gmail.com> wrote: > > How can I delete data from table data which is in the database named > > contacts2.db > > That is not your database. Please use the Contacts or ContactsContract > API for manipulating the contacts. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 2.9 Available! > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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