[android-developers] Trying to get a ProgressDialog to display.

2011-05-28 Thread EmilDiego
I have a function inside one of my activities that calculates some statistics and takes a little time to generate a report. I want to display a progressDialog while this is going on to give the user some feedback that something is happening while he is waiting. The problem I am having is that I c

Re: [android-developers] Trying to get a ProgressDialog to display.

2011-05-28 Thread B Lyon
I've never used that one, but I'm wondering if the second ".show()" is necessary, and/or if it is somehow causing weirdness? This person (http://www.helloandroid.com/tutorials/using-threads-and-progressdialog) didn't do that. On Sat, May 28, 2011 at 9:43 AM, EmilDiego wrote: > I have a function

Re: [android-developers] Trying to get a ProgressDialog to display.

2011-05-28 Thread Satya Komatineni
UI, including dialogs, is fundamentally an asynchronous process served by the same thread. A show() on a dialog is a "delayed instruction" to tell the main thread to show the dialog when it comes back around the loop to process that message. However if you follow the "show" with a "dismiss" in th