Issue using Contact Group delete on Android
问题 I have this code to delete a Contact Group public void delete(Activity act,String[] args) { try { int b=act.getContentResolver().delete(ContactsContract.Groups.CONTENT_URI,"_ID=?", args); Toast.makeText(act, "Deleted",Toast.LENGTH_SHORT).show(); //notify registered observers that a row was updated act.getContentResolver().notifyChange(ContactsContract.Groups.CONTENT_URI, null); } catch (Exception e) { Log.v(TAG, e.getMessage(), e); Toast.makeText(act, TAG + " Delete Failed",Toast.LENGTH_LONG)