2009/10/19 dominity <[email protected]> > > Hi. > > I'm glad that there is group that can help me with this situation. > > I've got problem with calendar events retrieving. In my calendar i've > got huge amount of events. I want to retrieve them for example for > current month. I know that calenar has 50 events, but when I'm trying > to retrieve them CalenarService returns only 33. If I'm queiring by > week or day it responds with all events. Here is my code (it's the > same as in documentation, nothing special): > > <code> > URL feedUrl; > try { > feedUrl = new URL( /*calendar link here*/ ); > } catch ( MalformedURLException mue ) { > throw new Exception( "Bad calendar feed link." ); > } > > CalendarQuery myQuery = new CalendarQuery( feedUrl ); > myQuery.setMinimumStartTime( /*start time*/ ); > myQuery.setMaximumStartTime( /*end time*/ ); > > CalendarEventFeed resultFeed = service.query( myQuery, > CalendarEventFeed.class ); > List<CalendarEvent> events = resultFeed.getEntries(); > </code> > > I was trying to divide big period to set of small periods and to send > sequence of queries instead of one. It's working fine. But I want > application to run on GAE. Request that is invokes such type of > retrieving lasts more than 30 seconds. > Do you have any suggestions? Am I wrong with my thoughts? > > Best regards, Alexander. > You should use : myQuery.setMaxResults (number); just before sending the query.
-- Florent Devin Téléphonez moi gratuitement via le net : Domicile : http://call.mylivio.com/fd0 Professionnel : http://call.mylivio.com/fd_pro --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
