Hi Venky,

You can retrieve the number of events contained in a feed by calling
getTotalResults() on the CalendarEventFeed class, ie

URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/
private/full");
CalendarEventFeed resultFeed = myService.getFeed(feedUrl,
CalendarEventFeed.class);
int total = resultFeed.getTotalResults();

Now you can use this total count to determine when to display your
message when it is zero.

Hope it helps,
Austin



On Oct 18, 11:22 pm, venkyengineer <[EMAIL PROTECTED]> wrote:
> Hi Frieds,
> My name is Venky,
>          I am using gdata java api and i want to display  a String
> such as,
>             "There is no Events in the Calendar please have enter some
> Events in your Calendar"
>
> If there is no Event in the google Calendar for a user then the above
> message has to be displayed.
>        How can i make it.
>
> Please Make a response
>
> Waiting for the Response
>
> With Regards,
> Venky


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