Hi Folks,

Trying to insert even in google calendar but with no luck. Any
pointers?

 String [EMAIL PROTECTED];
 String pass=xyz;
  myService.setUserCredentials(name, pass);
      URL postUrl =
        new URL("http://www.google.com/calendar/feeds/"+name+"/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.parseDateTime("2008-08-22T15:00:00-08:00");
      DateTime endTime =
DateTime.parseDateTime("2008-08-22T17:00:00-08:00");
      When eventTimes = new When();
      eventTimes.setStartTime(startTime);
      eventTimes.setEndTime(endTime);
      myEntry.addTime(eventTimes);
Thanks
Manu


      // Send the request and receive the response:
      CalendarEventEntry insertedEntry = myService.insert(postUrl,
myEntry);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to