Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Mar 16, 2017
Embed
What would you like to do?
isAnyMealSaved
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