简体   繁体   中英

How can i fetch data in google calendar api in Calendar view?

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

在此输入图像描述

If you want to use Calendar View , then try to check these tutorials that can show you on how to use it with Android code. You can follow the step by step procedure here with sample code that you can copy.

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 .

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 .

Important to read: Google Calendar API: Synchronize Resources Efficiently

Other questions:

Android Calendar: how to write sync adapter for calendar INSERT

How to build a syncadapter for the google calendar?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM