Hi, 

I'm developing an Android APP that connects to Google Calendar using GData 
API for Google Calendar in 
Java<http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html>. 
So far I've managed to create events but I could only set the title, 
description and time. 

Does anybody know where I can find a reference or a sample with all the 
parameters I can set to an event?

I leave you some code of what I've achieved so far.

CalendarService calendarService = new CalendarService("CalendarAPP");
calendarService.setUserCredentials(<username>, <password>);
URL postUrl = new URL("https://www.google.com/calendar/feeds/<GMAIL 
ACCOUNT>/private/full");
CalendarEventEntry myEntry = new CalendarEventEntry();

myEntry.setTitle(new PlainTextConstruct("Tennis with Beth"));
myEntry.setContent(new PlainTextConstruct("Meet for a quick lesson."));

DateTime startTime = DateTime.now();
DateTime endTime = DateTime.now();
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
myEntry.addTime(eventTimes);

CalendarEventEntry insertedEntry = 
connection.getCalendarService().insert(postUrl, myEntry);

Thanks in advance.

Mikywan.

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

Reply via email to