How to delete a contact?
问题 I'm working at android 2.1 ContactContract, when I had not set account(for example: gmail account) to android emulator then, new a contact, but could not delete this contact at DB. ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); String[] args = new String[] {id}; ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI) .withSelection(Data.CONTACT_ID + "=?", args) .build()); ops.add(ContentProviderOperation.newDelete(RawContacts.CONTENT_URI)