- Android: SQLite find data
- Cursor cur = sampleDB.rawQuery("SELECT * FROM " + Constants.TABLE_NAME,
- null);
- if (cur= null) {
- if (cur.moveToFirst()) {
- do {
- String title = cur.getString(cur.getColumnIndex("Title"));
- // "Title" is the field name(column) of the Table
- } while (cur.moveToNext());
- }
- }