Android Sync Adapter

http://developer.android.com/training/sync-adapters/creating-sync-adapter.html
http://udinic.wordpress.com/2013/07/24/write-your-own-android-sync-adapter/