final Cursor cursor = Attendees.query(cr, eventID, PROJECTION);
cursor.moveToFirst();
final Attendee[] attendees = new Attendee[cursor.getCount()];
- for(int i=0;i<attendees.length;i++)
+ for(int i=0;i<attendees.length;i++){
attendees[i]=new Attendee(cursor.getLong(0), cursor.getLong(1), cursor.getString(2), cursor.getString(3), cursor.getInt(4), cursor.getInt(5), cursor.getInt(6));
+ cursor.moveToNext();
+ }
return attendees;
}
}
final Cursor cursor = cr.query(Calendars.CONTENT_URI, PROJECTION, null, null, null);
cursor.moveToFirst();
final Calendar[] calendars = new Calendar[cursor.getCount()];
- for(int i=0;i<calendars.length;i++)
+ for(int i=0;i<calendars.length;i++){
calendars[i]=new Calendar(cursor.getLong(0), cursor.getString(1), cursor.getString(2), cursor.getInt(3)!=0, cursor.getString(4), cursor.getString(5));
+ cursor.moveToNext();
+ }
return calendars;
}
}
sort);
cursor.moveToFirst();
final Event[] events = new Event[cursor.getCount()];
- for(int i=0;i<events.length;i++)
+ for(int i=0;i<events.length;i++){
events[i]=new Event(cursor.getLong(0), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4), cursor.getInt(5), cursor.getLong(6), cursor.getLong(7), cursor.getLong(8));
+ cursor.moveToNext();
+ }
return events;
}