Hi guys! Today we are going to do a script that will show an Android progress bar while downloading a file. A progress bar looks good for the user to be notified about the progress of the download.
We will easily use a UI thread with Android AsyncTask. In other terms, we will use a subclass to handle our downloader thread.
|Our output is something like this|
And for the AndroidManifest.xml, include the INTERNET and WRITE_EXTERNAL_STORAGE permissions.
That's it! :)
For FREE programming tutorials, click the red button below and subscribe! :)