Created
April 22, 2017 09:44
-
-
Save markojerkic/f9a91ceae484213961e3e6a4d4562514 to your computer and use it in GitHub Desktop.
This file contains 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
public void delete(DatabaseHelper mDbHelper, String value) { | |
SQLiteDatabase db = mDbHelper.getReadableDatabase(); | |
//Where comand | |
String selection = FeedEntry.COLUMN_NAME1 + " LIKE ?"; | |
//Replace the ' | |
String[] selectionArgs = { value }; | |
//Delete the value | |
db.delete(FeedEntry.TABLE_NAME, selection, selectionArgs) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment