AsyncTask and show the download progress in a dialog
2. Download from Service
2.1 Use Groundy library
DownloadManager class (
GingerBread and newer only)
- You must check whether user has an internet connection available
- Make sure you have the right permissions (
ACCESS_NETWORK_STATEif you want to check internet availability.
- Make sure the directory were you are going to download files exist and has write permissions.
- If download is too big you may want to implement a way to resume the download if previous attempts failed.
- Users will be grateful if you allow them to interrupt the download.