I'm currently using a DownloadManager to download a ~20mb CSV to external storage through my app which requires the Write_External permission. I'd like to be able to download this CSV to my app's internal storage (so I don't have to require that permission and the guarantee that internal storage is always available) however a DownloadManager cannot do this/access my app's storage.
I know I can use an AsyncTask or a Download Service to do this stuff, but I like the way DownloadManager behaves in the sense that:
- a download is automatically launched when the user regains an internet connection after starting one offline
- it automatically handles pausing, resuming and retrying of downloads
Can I achieve this through an AsyncTask, Service or even a third party lib?