Guest User

Untitled

a guest
Jul 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1.             Cursor friendCursor = database.query(TABLE_NAME, new String[] {
  2.                     PREPOD_ID, PREPOD_FIO, PREPOD_PHOTO, PREPOD_ayditoriya, PREPOD_STAT }, null, null, null, null, PREPOD_ID);
  3.             friendCursor.moveToFirst();
  4.            
  5.             Map<String, Object> m;
  6.             if (!friendCursor.isAfterLast()) {
  7.                 do {
  8.  
  9.                     m = new HashMap<String, Object>();
  10.                     m.put(name, friendCursor.getString(1));
  11.                     m.put(photo, friendCursor.getInt(2));
  12.                     //m.put(ayditoriya, friendCursor.getString(3));
  13.                     m.put(stat, friendCursor.getString(4));
  14.                     data.add(m);
  15.                 } while (friendCursor.moveToNext());
  16.             }
  17.            
  18.             friendCursor.close();
Add Comment
Please, Sign In to add comment