Here's an example use of onProgressUpdate() which solves your problem. http://www.codingforandroid.com/2011/06/basic-asynctask-with-progress-bar.html
On Monday, August 20, 2012 11:34:07 PM UTC+8, Wolfgang wrote: > > Hey guys, > > I am trying to add a ProgressDialog to show the progress of my AsyncTask. > However, the ProgressDialog is not being shown until after the async task > is complete. I have read that async task blocks the UI thread. How can I > get around this to show the ProgressDialog during the async task? > > Thanks, > > -W > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en