Hello Matthias,
Can you print the value of this:
updatedEntry.getStatus().getValue();
If it is
"canceled<http://code.google.com/apis/gdata/docs/2.0/elements.html#gdEventStatus>",
this means that the event has been deleted and will no longer appear on the
web UI. You will still be able to retrieve the event by specifying the query
parameter "showdeleted=true".
Also, please use this documentation instead as it provides more information
about the Calendar APIs:
http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html
Best,
Alain
On Wed, Jun 22, 2011 at 7:36 AM, Matthias Keller
<[email protected]>wrote:
> Hi,
> I am using Google Data API for Java to connect some Java app with
> Google calendars. Everythink works fine for querying calendars and
> events.
>
> I used the following tutorial:
> http://code.google.com/intl/de/apis/gdata/client-java.html#Update_Item
>
> However, in my case after the update() the event is removed* from the
> calendar. The source code is that:
>
> // changes to entry object (retrieved by getEntry)
> CalendarService service = new CalendarService(appID);
> // authenticate service... using setUserCredentials
> URL editUrl = new URL(entry.getEditLink().getHref());
> CalendarEventEntry updatedEntry = service.update(editUrl, entry);
>
> No exception is thrown, and the updatedEntry object is not null.
>
> Thanks in advance...
>
> *) i.e. the Google Calendar website does not show it anymore after
> reload, and a new getFeed() query will not list the event again
>
> PS: If somebody knows how to turn on debug messages of gdata that
> would be great ;)
>
> --
> 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
>
--
Alain Vongsouvanh
--
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