HI,
please help me guys........
While updating my old events, PreconditionFailedException is thrown
my code :
for (int delEventCounter = 0; delEventCounter < getEntriesSize;
delEventCounter++) {
try {
updateEntry = feed.getEntries().get
(delEventCounter);
String myEntryId = updateEntry.getId();
if(myEntryId != null) {
if(myEntryId.equals(localEventId)) {
When eventTimes = new When();
postUrlUpdateString =
updateEntry.getEditLink().getHref();
updateEntry.setTitle(new
PlainTextConstruct(event.getTitle()));
myEntry.setContent(new
PlainTextConstruct(event.getDescription()));
updateEntry.addLocation(new
Where("","",event.getLocation()));
com.google.gdata.data.DateTime startTime =
com.google.gdata.data.DateTime.parseDateTime(event.getStartDateTime
().toString());
com.google.gdata.data.DateTime startTime =
com.google.gdata.data.DateTime.parseDateTime(event.getStartDateTime
().toString());
eventTimes.setStartTime(startTime);
eventTimes.setEndTime
(endTime);
updateEntry.addTime
(eventTimes);
updateEntry.update();
updateInsertedEntry =
myService.update(editUrl, updateEntry);
}
}
}catch(Exception e) {
throw new IllegalArgumentException
();
}
}
Please help me
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---