如何在“日历"视图中的Google Calendar API中获取数据? [英] How can i fetch data in google calendar api in Calendar view?

查看:143
本文介绍了如何在“日历"视图中的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日历构建同步适配器?

这篇关于如何在“日历"视图中的Google Calendar API中获取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆