I am developing restaurant menu application. My app has a sqlite table which has these columns:
\"id\", \"category\", \"item_name\"
Content
String selectQuery = "select * from " + TABLE; sqlDatabase = this.getWritableDatabase(); Cursor cursor = sqlDatabase.rawQuery(selectQuery, null); if (cursor != null) { cursor.moveToFirst(); } return cursor;
this will help you..