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
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.