i try to delete contact groups by following code.but it does not work. they are still in contact display options list. how should i do?
String where = ContactsContract.Data.MIMETYPE + " = ?"; String[] whereParameters = new String[] { GroupMembership.CONTENT_ITEM_TYPE }; int delete = getContentResolver().delete( ContactsContract.Data.CONTENT_URI, where, whereParameters); // グループ情報を削除 int count = getContentResolver().delete( ContactsContract.Groups.CONTENT_URI, ContactsContract.Groups.SYSTEM_ID + " is null and " + ContactsContract.Groups._ID + " > " + GROUP_ID_STARRED_IN_ANDROID, null); // notify registered observers that a row was updated getContentResolver().notifyChange(ContactsContract.Groups.CONTENT_URI, null); -- 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