I am currently using the Quickstart Google Calendar API
I am trying to check if the events are marked as "free" or "busy"
The full code can Ben found here
https://developers.google.com/google-apps/calendar/quickstart/android
This is a snippet of the method which collects the event data
I have looked inside the freebusy method within a calendar class
https://developers.google.com/resou.../api/services/calendar/Calendar.Freebusy.html
And tried creating "freebusy requests" and "freebusy" variables, linking them to each event and attempted to create a query
I have also tried using the "CalenderContact.Event.AVAILABILTY"
"CalenderContact.Event.AVAILABILTY_BUSY"
"CalenderContact.Event.AVAILABILTY_FREE"
However I personally think and these have nothing to with it
What do you think? Is there something wrong with my structure ? Any help would be much appreciated
I am trying to check if the events are marked as "free" or "busy"
The full code can Ben found here
https://developers.google.com/google-apps/calendar/quickstart/android
This is a snippet of the method which collects the event data
Code:
private List<String> getDataFromApi() throws IOException {
// List the next 10 events from the primary calendar.
DateTime now = new DateTime(System.currentTimeMillis());
List<String> eventStrings = new ArrayList<String>();
Events events = mService.events().list("primary")
.setMaxResults(10)
.setTimeMin(now)
.setOrderBy("startTime")
.setSingleEvents(true)
.execute();
List<Event> items = events.getItems();
for (Event event : items) {
DateTime start = event.getStart().getDateTime();
if (start == null) {
// All-day events don't have start times, so just use
// the start date.
start = event.getStart().getDate();
}
eventStrings.add(
String.format("%s (%s)", event.getSummary(),
}
return eventStrings;
}
I have looked inside the freebusy method within a calendar class
https://developers.google.com/resou.../api/services/calendar/Calendar.Freebusy.html
And tried creating "freebusy requests" and "freebusy" variables, linking them to each event and attempted to create a query
I have also tried using the "CalenderContact.Event.AVAILABILTY"
"CalenderContact.Event.AVAILABILTY_BUSY"
"CalenderContact.Event.AVAILABILTY_FREE"
However I personally think and these have nothing to with it
What do you think? Is there something wrong with my structure ? Any help would be much appreciated
Last edited: