I'm looking for a way to download a PDF file to internal storage using threading like AsyncTask. I searched on the internet for but I couldn't find a good tutorial. Can anyone show me how to do this with an example? Thanks!
Asked
Active
Viewed 1,600 times
2 Answers
0
Here is an excellent post that discussed how to use AsyncTask
to download a large file, as well as to show the progress of the download by using ProgressDialog
: Download a file with Android, and showing the progress in a ProgressDialog
0
The best and simple way to download a file in android is using DownloadManager class. See this tutorial for understanding how to use this class.

Mostafa
- 3,175
- 1
- 15
- 9