So, just to get a single event, I have to keep in memory all my events? what
about they are like 100000?



2011/2/14 Alain <[email protected]>

> If you just want the events' details, you don't really need the self URL
> unless you want to store it in a database and retrieve this single event
> later.
>
> The code you have above already retrieve the events for the account "
> [email protected]" main calendar". What you need to do is to
> iterate through the list of events and retrieve the information you need:
>
> [CODE]
>      if (myResultsFeed.getEntries().size() > 0) {
>           for (CalendarEventEntry event : myResultFeed.getEntries()) {
>             String id = event.getId();
>             String title = event.getTitle().getPlainText();
>
>             for (When when : event.getTimes()) {
>               DateTime startTime = when.getStartTime();
>               DateTime endTime = when.getEndTime();
>             }
>
>             // You can retrieve more information from the event object.
>           }
>         }
> [/CODE]
>
> You can find more information about the CalendarEventEntry data type by
> reading the Java Doc:
> http://code.google.com/apis/gdata/javadoc/com/google/gdata/data/calendar/CalendarEventEntry.html
>
> I hope this helped!
>
> Best,
> Alain
>
>  --
> 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://code.google.com/apis/calendar/community/forum.html
>

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to