Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created March 11, 2017 09:14
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 jezinka/7335618653e84b5c379af2f32cfb7d1d to your computer and use it in GitHub Desktop.
Save jezinka/7335618653e84b5c379af2f32cfb7d1d to your computer and use it in GitHub Desktop.
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