0

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!

Bouss
  • 205
  • 2
  • 9
  • 20

2 Answers2

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

Community
  • 1
  • 1
Willis
  • 5,308
  • 3
  • 32
  • 61
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