Android – Displaying a Progress Bar in AsyncTask

In researching the best way to approach displaying a progress bar while an android app is completing a task I came across a few helpful guides! I wanted to use the progress bar during an AsyncTask method call.
The only unique feature which stood out to me was being able to setup the progress bar in the XML or dynamically in java. I picked setting up the progress bar dynamically in Java.
The guides I focused on, in summation, covered setting up a progress bar dynamically in Java during an AsyncTask method call.

Listed below in no particular order:
http://www.android10.org/index.php/forums/43-view-layout-a-resource/908-tutorial-progressbar-running-in-asynctask
https://sites.google.com/site/androidhowto/how-to-1/asynctasks-with-progressdialogs
http://www.brighthub.com/mobile/google-android/articles/43168.aspx
http://huuah.com/android-progress-bar-and-thread-updating/
http://bytecrafter.blogspot.com/2008/12/using-horizontal-progress-bar-in.html

Alternative method using Threads to update/display a Progress Bar:
http://www.eigo.co.uk/labs/threads-and-progress-dialogs-in-android-screen-orientation-rotations/

One comment on “Android – Displaying a Progress Bar in AsyncTask
  1. wwjoshdew says:

    Damn dude, you take the saying “You can do anything you set your mind to, to a whole new level!” Good stuff man!

Leave a Reply

Your email address will not be published. Required fields are marked *

*