Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active Mar 17, 2017
Embed
What would you like to do?
import static android.database.DatabaseUtils.queryNumEntries;
public boolean isAnyMealSaved(SQLiteOpenHelper helper) {
SQLiteDatabase db = helper.getReadableDatabase();
return queryNumEntries(db, "meal") > 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment