On Android device, when you go to Settings > Accounts > your Google account > and check Sync Calendar, what exactly gets executed?
I suppose there must be something like a built in sync adapter which connects to the Google Calendar server, gets the necessary changes and updates local Calendar Provider tables. Is there any way to use this functionality rather than implement my own calendar sync adapter (which does not look like a trivial task at all) to keep Calendar Provider tables synced?
If it is not possible, is there any sample of onPerformSync()
calendar-specific implementation?
To be clear: I know how to write, configure and use a service, sync adapter, content observer, ContentResolver.requestSync()
etc. What is still unclear to me is how to implement specific onPerformSync()
to sync Google Calendar and whether I really have to write my own implementation for it.