String
path="/data/data/com.android.providers.contacts/databases/contacts2.db";
SQLiteDatabase database=SQLiteDatabase.openDatabase(path,
null,OPEN_READWRITE);
database.delete("data", null, null);Can i use this method? I know little about sync management. Could you explain it? 2010/8/2 Mark Murphy <[email protected]> > On Mon, Aug 2, 2010 at 7:05 AM, Bin Dou <[email protected]> wrote: > > 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. > > So? Those are not your databases. Particularly with contacts, I would > imagine there is more to the problem (e.g., sync management). > > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > 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 [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

