Reputation: 89
I have a task of sync SQLite DB with SQLServer DB. (Real-time is not necessary, may be delay 2 - 4 mins)
I DO:
But, there are a lot of data to GET/POST, so the device consumes a lot of resource to process, and I fell it's slow.
How to solve this?
Upvotes: 0
Views: 101
Reputation: 884
A class that wraps your data transfer code in an interface compatible with the sync adapter framework.
A component that allows the sync adapter framework to run the code in your sync adapter class.
A file containing information about your sync adapter. The framework reads this file to find out how to load and schedule your data transfer.
XML that declares the bound service and points to sync adapter-specific metadata.
https://developer.android.com/training/sync-adapters/creating-sync-adapter.html#CreateSyncAdapter
Upvotes: 1