This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public int delete(Uri uri, String selection, String[] selectionArgs) { | |
| // Get writeable database | |
| SQLiteDatabase database = mDbHelper.getWritableDatabase(); | |
| final int match = sUriMatcher.match(uri); | |
| switch (match) { | |
| case PETS: | |
| // Delete all rows that match the selection and selection args | |
| return database.delete(PetEntry.TABLE_NAME, selection, selectionArgs); |