Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public boolean insertMeal(String name) {
SQLiteDatabase db = this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put("name", name);
db.insert(TABLE_NAME, null, contentValues);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment