On Wed, Nov 5, 2008 at 9:15 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Dear Sir,
>            I am trying to add a new reminder in a Google event by
> using the following kind of code.
>
> CalendarEventEntry event= GoogleCalendarUtils.findEvent(sessionInfo,
> parentId);
> CalendarEventEntry newEvent=null;
> Reminder reminder = new Reminder();
> event.addExtension(reminder);
> event.setExtension(reminder);
> newEvent=event.update();
> GoogleCalendarUtils.updateEventEntry(sessionInfo,event,newEvent);
>
> Unfortunately, it is not working. Can some one please help and tell me
> how to add a new reminder in an Event.
>
> Best Regards,
> Faisal

Well, for starters, you can't invoke methods on a null object. :)

Change:

    CalendarEventEntry newEvent=null;

to:

    CalendarEventEntry newEvent = new CalendarEventeEntry();

Outside of that, can you provide a copy of the error you're receiving?

-- 
Trevor Johns

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