Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4608624
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:52:17+00:00 2026-05-22T00:52:17+00:00

I’m developing an Android APP that connects to Google Calendar using GData API for

  • 0

I’m developing an Android APP that connects to Google Calendar using GData API for Google Calendar in Java. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:52:18+00:00Added an answer on May 22, 2026 at 12:52 am

    GData for Google Calendar it’s pretty damn good. For every property you may want to set or get, there is a Getter and a Setter defined. You just have to look for the setter/getter on the event entry that suits the data you want access.

    I leave an example of how to show on the console almost all the data you may want to.

    Enjoy!

    private static void showCalendarEventEntry(CalendarEventEntry entry) {
        assert entry != null;
        System.out.println("-------------------------------------------");
        System.out.println("START showCalendarEventEntry");
        System.out.println("");
        System.out.println("ID: " + entry.getId());
        System.out.println("TITLE: "+entry.getTitle().getPlainText());
        System.out.println("DESCRIPTION: "+entry.getPlainTextContent());
        System.out.println("LOCATION: "+entry.getLocations().get(0).getValueString());
    
        System.out.println("");
        System.out.println("TIMES");
        if (entry.getTimes().size() > 0) {
            When eventTimes = entry.getTimes().get(0);
            if (eventTimes.getStartTime().isDateOnly()) {
                System.out.println("\tWHEN: ALL DAY");
            } else {
                System.out.println("\tWHEN: TIME");
            } 
    
            if (entry.getRecurrence() != null)
                System.out.println("\tRECURRENCE: "+entry.getRecurrence().toString()); 
    
            System.out.println("\tSTART TIME: "+eventTimes.getStartTime());
            System.out.println("\tEND TIME: "+eventTimes.getEndTime());
        }
    
        System.out.println("");
        System.out.println("PARTICIPANTS");
        System.out.println("\t"+(entry.getParticipants().size()) + " PARTICIPANTS");
        if (entry.getParticipants().size() > 0){
    
            for (int i=0; i<entry.getParticipants().size(); i++) {
                EventWho participant = entry.getParticipants().get(i);
                System.out.println("\t\tPARTICIPANT "+participant.getValueString());
                System.out.println("\t\t\tTYPE: "+participant.getAttendeeType());
                System.out.println("\t\t\tSTATUS: "+participant.getAttendeeStatus());
            }
            if (entry.isGuestsCanInviteOthers())
                System.out.println("\tGUESTS CAN INVITE OTHERS: ");
            if (entry.isGuestsCanModify())
                System.out.println("\tGUESTS CAN MODIFY");
            if (entry.isGuestsCanSeeGuests())
                System.out.println("\tGUESTS CAN SEE GUESTS");
        } 
    
        //REMINDERS
        System.out.println("");
        System.out.println("REMINDERS");
        System.out.println("\t"+entry.getReminder().size()+" REMINDERS");
        if (entry.getReminder().size() > 0) {
            for (int i=0; i<entry.getReminder().size(); i++) {
                Reminder reminder = entry.getReminder().get(i);
                System.out.println("\t\tREMINDER "+i);
                System.out.println("\t\t\tMETHOD: "+reminder.getMethod().toString());
                System.out.println("\t\t\tDAYS: "+reminder.getDays());
                System.out.println("\t\t\tHOURS: "+reminder.getHours());
                System.out.println("\t\t\tMINUTES: "+reminder.getMinutes());                
            }
        }
    
        //VISIBILITY
        System.out.println("");
        System.out.println("VISIBILITY: "+entry.getVisibility().getValue());
    
        System.out.println("");
        System.out.println("END showCalendarEventEntry");
        System.out.println("-------------------------------------------");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.