Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment