How should I handle an active ProgressDialog when the screen is
rotated? Perhaps I should cancel the dialog in onDestroy and restart
it in response to a SavedInstanceState flag?

I'm getting an exception and the following message in logcat:

E/WindowManager( 4240): Activity com.quickdroid.MainActivity has
leaked window c
om.android.internal.policy.impl.phonewindow$decorv...@44789150 that
was original
ly added here
E/WindowManager( 4240): android.view.WindowLeaked: Activity
com.quickdroid.MainA
ctivity has leaked window com.android.internal.policy.impl.PhoneWindow
$DecorView
@44789150 that was originally added here
E/WindowManager( 4240):         at
android.view.ViewRoot.<init>(ViewRoot.java:24
7)
E/WindowManager( 4240):         at
android.view.WindowManagerImpl.addView(Window
ManagerImpl.java:148)
E/WindowManager( 4240):         at
android.view.WindowManagerImpl.addView(Window
ManagerImpl.java:91)
E/WindowManager( 4240):         at android.view.Window
$LocalWindowManager.addVie
w(Window.java:424)
E/WindowManager( 4240):         at android.app.Dialog.show(Dialog.java:
241)
E/WindowManager( 4240):         at
android.app.ProgressDialog.show(ProgressDialo
g.java:107)
E/WindowManager( 4240):         at
android.app.ProgressDialog.show(ProgressDialo
g.java:90)
E/WindowManager( 4240):         at
android.app.ProgressDialog.show(ProgressDialo
g.java:85)
...

-- 
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

Reply via email to