I need to upload data to the server repeatedly (say after every 10 minutes). The application will check in the local SQLite DB if there's any unsynced data and will upload it.
If I call an AsyncTask
from a Handler
repeatedly, will it work even when the app is paused (user navigates to another application)?
How can a Service
be used to do this (as service can be run in the background)? Should I use Service
or IntentService
?