如何在“日历"视图中的Google Calendar API中获取数据?

问题描述:

如何使用Android Studio在Google日历视图的Google Calendar API中获取此数据?以及我如何使其保持同步?

How can I make this data I fetch in google calendar API in Calendar View using Android Studio? And how I keep it synchronized?

您可以使用其他解决方案在日历视图中同步事件.

You can have different solutions for sync your events in the Calendar View.

其中之一就是让用户使用刷卡刷新界面模式.

One of them is just making the user refreshing your app using something like Swipe-to-Refresh interface pattern.

每当用户在活动生命周期方法中打开应用程序时,其他解决方案就会运行对API的请求,同步适配器.

Other solutions are running the request to the API whenever the user opens the application inside activities lifecycle methods, running a service or using a sync adapter.

重要阅读内容: Google Calendar API:有效地同步资源

其他问题:

Android日历:如何为日历INSERT

如何为Google日历构建同步适配器?