I'm not sure if this helps, but make sure ALL of your calls to ProgressDialog methods are done in the UI thread. This includes calls like setMessage() etc.
I had experienced problems related to this. Everything ran fine on my Hero but when I tested on the Emulator, I got all sorts of weird ProgressDialog behaviour. Putting all the calls in the UI thread solved the problem. Strange that the Hero and Emulator ran so differently despite running the same SDK. On Oct 15, 6:54 am, szabolcs <[email protected]> wrote: > Hello, > > I am trying to reuse a single instance of a ProgressDialog by multiple > Tasks (by only changing its displayed message during the > onPrepareDialog callback), but whenever I show the PDLG after a > previous call to dismissDialog, the dialog's indeterminate ProgressBar > is not rotating/animating. > > I have tried looking at the code, found how to get to the Drawable and > tried calling > (ProgressBar)PDLG.findViewById(android.R.id.progress). > getIndeterminateDrawable().setVisible(true, true); > in an attempt to restart the animation, but to no avail. > > My UGLY workaround for now is to call removeDialog() wherever I would > normally call dismissDialog(), which of course defeats the purpose of > managed dialogs, but at least keeps the animation running.. > > Thank you for any suggestion/explanation, > > -szabolcs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

