Answers for "get data from cursor android"

0

get data from cursor android

if (cursor.moveToFirst()) {                                                                  
do {                                                            
    String x  = cursor.getString(cursor.getColumnIndex("event_name"));                  
    System.out.println("Cursor ::::::" + x);                                            
    listViewModel.setEventDate(cursor.getString(cursor.getColumnIndex("event_date")));   
    modelList.add(listViewModel);                                                        
}while (cursor.moveToNext());
Posted by: Guest on July-01-2021

Code answers related to "get data from cursor android"

Browse Popular Code Answers by Language