diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d213102..1039c5f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,8 +2,8 @@ + android:versionCode="4" + android:versionName="1.1.1-20140326" > > getTafels() { */ public boolean isTafelBezet(int tafelnummer) { boolean result = false; - + // Voer query uit - String query = "SELECT " + KEY_STATUS + " FROM " + TABLE_TAFEL + " WHERE " + KEY_TAFELNR + "=?"; + String query = "SELECT " + KEY_STATUS + " FROM " + TABLE_TAFEL + " WHERE " + KEY_TAFELNR + + "=?"; SQLiteDatabase db = getReadableDatabase(); - Cursor cursor = db.rawQuery(query, new String[] { Integer.toString(tafelnummer)}); - + Cursor cursor = db.rawQuery(query, new String[] { + Integer.toString(tafelnummer) + }); + // Haal gegevens op cursor.moveToFirst(); int status = cursor.getInt(cursor.getColumnIndexOrThrow(KEY_STATUS)); - + result = (status == 1) ? true : false; - + cursor.close(); db.close(); - + return result; - + } - + /** * Voegt een nieuw product toe. *