EDIT, Changed the code slightly based on answers below, but still haven\'t got it working. I also added a log message to tell me if getCount was returning > 0, and i
Here's what I did...
Cursor cur = db.rawQuery("SELECT count(*) FROM " + SQLHelper.TABLE_CART, null); if (cur != null && cur.moveToFirst() && cur.getInt(0) > 0) { Log.i(getClass().getName(), "table not empty"); } else { Log.i(getClass().getName(), "table is empty"); }