private void handleRemove(final String address) { final Uri uri = AddressBookProvider.contentUri(activity.getPackageName()) .buildUpon() .appendPath(address) .build(); activity.getContentResolver().delete(uri, null, null); }
@Override public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { final Uri uri = AddressBookProvider.contentUri(activity.getPackageName()); return new CursorLoader( activity, uri, null, AddressBookProvider.SELECTION_NOTIN, new String[] {walletAddressesSelection != null ? walletAddressesSelection : ""}, AddressBookProvider.KEY_LABEL + " COLLATE LOCALIZED ASC"); }