Android SDK: how to exit office status for calendar events?

Galaxy S3, ICS, Java: for upcoming CalendarContract events, how can I determine if the Event will be outside the office, for example, the upcoming vacation? Using CalendarContract.Events, I can successfully read information about calendar events, including AVAILABILITY (FREE, FREE, PRELIMINARY). My phone shows the upcoming vacation as being out of the office, so I expected to find a way to get this status for events, but so far no luck.

+4
source share
1 answer

As a workaround to your road block, you can try comparing the location of events. Either the user has set his workplace, or read it from an office event. Then everything with a location! = An office space that you can display as outside the office.

0
source

Source: https://habr.com/ru/post/1448126/


All Articles