Java – Android SDK: How to get out of office status for Calendar events?

Android SDK: How to get out of office status for Calendar events?… here is a solution to the problem.

Android SDK: How to get out of office status for Calendar events?

Galaxy S3, ICS, Java: For an upcoming CalendarContract event, how do I determine if the event will be out, such as the upcoming holidays? Using CalendarContract.Events I can successfully read calendar event information, including availability (busy, free, tentative). My phone shows the upcoming vacation as going out, so I was hoping to find a way to retrieve the status of the event, but so far without success.

Solution

As a workaround for the roadblock, you can try to compare the locations of the events. Either let users set their work location or read it from the Office activity. Then everything with the location != office location can be shown as out of office.

Related Problems and Solutions