Skip to content

Instantly share code, notes, and snippets.

@markojerkic
Created April 22, 2017 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markojerkic/f9a91ceae484213961e3e6a4d4562514 to your computer and use it in GitHub Desktop.
Save markojerkic/f9a91ceae484213961e3e6a4d4562514 to your computer and use it in GitHub Desktop.
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