I am working on an app which is almost complete. In the app there is data files that are downloaded and uploaded from and to the sftp server .I want that when user downloads or upload files the process starts in the background letting user to use the app .I am also performing different condition check (which I dont intend user to wait for).I have used downloadManager but still I want to know how services could be useful to app.Please help .Thanks
Share
1) create simple service class, define it in Manifest.
2) use Async Task to perform the download
As you are using services ;user dont have to interact with your app,as services run at background.
And Async Task let you know the status of download by onPreExecute() and onPostExecute().
After successful download show notification to user.