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?
Solution 1:
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.
Solution 2:
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
Post a Comment for "How Can I Fetch Data In Google Calendar Api In Calendar View?"