I was wondering if there is a way to get the resultFeed from
GoogleCalendar sorted by date ]....meaning when i have three events in
the calendar and I want to display them using result
(CalendarEventEntry)resultFeed.getEntries().get(i) where i is the
number from 0 to number of events....the result of the events seems to
be printed in the order they were added? I was wondering if there is a
way to go through the resultFeed by date instead of me have to sort it
myself:
Here is a the code:
CalendarQuery myQuery = new
CalendarQuery(privateFeedUrl);
myQuery.setMinimumStartTime(info.getStartDate());
myQuery.setMaximumStartTime(info.getEndDate());
CalendarEventFeed resultFeed =
calendarService.query(myQuery,
CalendarEventFeed.class);
return resultFeed;
for (int i=0; i< resultFeed.getEntries().size(); i++)
CalendarEventEntry calEntry =
(CalendarEventEntry)resultFeed.getEntries().get(i);
//print calEntry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---