Make sure you dismiss() all your dialogs when your activity is destroyed. On Wed, Oct 14, 2009 at 4:13 AM, ilikeB2 <[email protected]> wrote: > > When I use invoke a ProgressDialog instance in an activity, sometimes > it will show error in logcat as below: > > E/WindowManager( 809): Activity com.android.phone.SimContacts has > leaked window com.android.internal.policy.impl.PhoneWindow > $decorv...@4345e558 that was originally added here > E/WindowManager( 809): android.view.WindowLeaked: Activity > com.android.phone.SimContacts has leaked window > com.android.internal.policy.impl.phonewindow$decorv...@4345e558 that > was originally added here > E/WindowManager( 809): at android.view.ViewRoot.<init> > (ViewRoot.java:214) > E/WindowManager( 809): at > android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) > E/WindowManager( 809): at > android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) > E/WindowManager( 809): at android.view.Window > $LocalWindowManager.addView(Window.java:392) > E/WindowManager( 809): at android.app.Dialog.show(Dialog.java: > 231) > E/WindowManager( 809): at com.android.phone.SimContacts > $1.handleMessage(SimContacts.java:82) > E/WindowManager( 809): at android.os.Handler.dispatchMessage > (Handler.java:99) > E/WindowManager( 809): at android.os.Looper.loop(Looper.java: > 123) > E/WindowManager( 809): at android.app.ActivityThread.main > (ActivityThread.java:3948) > E/WindowManager( 809): at > java.lang.reflect.Method.invokeNative(Native Method) > E/WindowManager( 809): at java.lang.reflect.Method.invoke > (Method.java:521) > E/WindowManager( 809): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:782) > E/WindowManager( 809): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > E/WindowManager( 809): at dalvik.system.NativeStart.main > (Native Method) > > and i found after this error, it will probably generate other problems > in windowmanage. Can anyone tell me in which case i will meet the case > and how can i avoid it ? It troubled me for a long time. thanks . > > >
-- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

