Created
March 11, 2017 09:14
-
-
Save jezinka/7335618653e84b5c379af2f32cfb7d1d 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 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