If you want to sync some custom data between your Android app and remote server, usually you need to implement a local storage for the data, Content Provider, and Sync Adapter to perform custom syncing.
What if in my app I am using standard Calendar Provider with its storage and want to sync my changes with Google Calendar server - how can I use the standard built in way to sync instead of reinventing the wheel and implement what Android can do by itself - all specific pulls/pushes/updates etc? By the built in way I mean what Android does on any device when you go to Settings > Accounts > Google and simply click Sync Calendar.
In my understanding, all I need to do is to execute this built in functionality in onPerformSync()
of my Sync Adapter, so how can I do that?