Skip to content

Instantly share code, notes, and snippets.

Created Mar 16, 2017
What would you like to do?
public boolean isAnyMealSaved(SQLiteOpenHelper sqLiteOpenHelper) {
SQLiteDatabase db = sqLiteOpenHelper.getReadableDatabase();
long count = DatabaseUtils.queryNumEntries(db, "meal");
return count > 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment