Guest User

Untitled

a guest
Jun 30th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Android: SQLite find data
  2. Cursor cur = sampleDB.rawQuery("SELECT * FROM " + Constants.TABLE_NAME,
  3. null);
  4.  
  5. if (cur= null) {
  6.  
  7. if (cur.moveToFirst()) {
  8. do {
  9.  
  10. String title = cur.getString(cur.getColumnIndex("Title"));
  11. // "Title" is the field name(column) of the Table
  12.  
  13. } while (cur.moveToNext());
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment