Friday, November 5, 2010

[android-developers] unable to dismiss a progress dialog

I've got a progress dialog that I'm unable to dismiss and I can't
figure out why. The first time through the code, it shows the dialog
and dismisses it perfectly. The second time through it fails to
dismiss. There is no error in the logcat and no exceptions are thrown,
but the dialog remains on the screen. If I run the code a third time,
while the dialog is on the screen, a window leak exception is shown in
the logcat when the code attempts to show the dialog, which is pretty
much what you'd expect.

The showDialog is called right before I call the execute method of an
AsyncTask and the dismissDialog is called in the onPostExecute method
of that AsyncTask.

Any ideas?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate