The basic feed doesn't contain gd:when elements. Try changing the "basic" in
your feedUrl.
http://code.google.com/apis/calendar/docs/2.0/reference.html#Projection
Ray

On Wed, Jul 29, 2009 at 10:38 PM, kingo <[email protected]> wrote:

>
>         URL feedUrl = new URL("
> https://www.google.com/calendar/feeds/verkkoaps.fi_phkvr0c4hevo4lu80p1qikqnvk%40group.calendar.google.com/private-fa8267d1963f0bcfe6f48e206d12e2d6/basic
> ");
>         CalendarService myService = new
> CalendarService("exampleCo-exampleApp-1");
>
>
>         myService.setOAuthCredentials(oauthParameters, signer);
>         CalendarQuery myQuery = new CalendarQuery(feedUrl);
>         myQuery.setMinimumStartTime(DateTime.parseDateTime(fromTime +
> "T00:00:00"));
>         myQuery.setMaximumStartTime(DateTime.parseDateTime(toTime +
> "T23:59:59"));
>         CalendarEventFeed resultFeed = myService.query(myQuery,
> CalendarEventFeed.class);
>
> 2009/7/30 Brad Davis <[email protected]>
>
>> What is your query string?
>>
>>
>> On Wed, Jul 29, 2009 at 7:15 AM, Kingo <[email protected]> wrote:
>>
>>>
>>> my code
>>>
>>> CalendarEventFeed resultFeed = myService.query(myQuery,
>>> CalendarEventFeed.class);
>>> CalendarEventEntry firstMatchEntry = (CalendarEventEntry)
>>> resultFeed.getEntries().get(0);
>>> List myEntryDescription=firstMatchEntry.getTimes();
>>>
>>> why the list is empty?
>>>
>>> I want get the events start time and end time.
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Best Regards.
> Kingo
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to