从 google 企业帐户获取日历事件

Get calendar events from google business account

现在我可以使用 Gmail 帐户从日历中获取事件,而不会带来任何不便。为此,我使用 AccountChooserGoogleAccountCredential 来获取在 android 应用程序中正确同步所需的信息和权限。但是当我尝试使用 google 企业帐户 (xxxxx@business.com) 时,它要求我安装 GoogleDevicePolicy App 并且除非我安装和配置此应用程序,否则它不允许我同步这个帐户的日历,最后我无法得到这个日历的事件。我怎样才能从这个日历中获取事件?

尝试按照 Google 的说明进行操作,即安装 GoogleDevPolicy 应用程序。这是 security measure,因为您的电子邮件不是 Gmail。

The Google Apps Device Policy app enforces security policies on your Android device to protect it and make it more secure.

Some organizations require their users to install the Google Apps Device Policy app on their device. Failure to install the app may block your mail, calendar, and contacts from syncing with your device.