I am getting this error automatically sent to me from a lot of beta
users.
java.lang.IllegalArgumentException: View not attached to window
manager
at
android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:
355)
at
android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200)
at android.view.Window
$LocalWindowManager.removeView(Window.java:432)
at android.app.Dialog.dismissDialog(Dialog.java:278)
at android.app.Dialog.access$000(Dialog.java:71)
at android.app.Dialog$1.run(Dialog.java:111)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Since it comes from external beta users I dont know what they were
doing when they got it. Nor do i know how to reproduce it. The stack
trace does not list any of our code.
Usually, this error means that there was an orientation change while a
dialog was open, thereby invalidating the reference to the dialog when
android recreates it. All of my activities already uses
android:configChanges="keyboardHidden|orientation"
in order to prevent them from doing this. We still get the error.
Has anyone else seen this before? What could be the problem?
Thanks,
Clark
--
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