图中未连接到窗口管理器(什么解决办法吗?) [英] View not attached to window manager (whats the solution?)

查看:156
本文介绍了图中未连接到窗口管理器(什么解决办法吗?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的错误报告hundreads从我的应用程序,所有的人都是一样的。这实在是烦人,因为在我的测试设备(HTC野火,Galaxy S的I-II-III,银河迷你,Galaxy Tab的10),这个错误永远不会发生,无论我的还是我的测试哥们,貌似用户做不同的事情,然后我们。

I got hundreads of error reports from my app and all of them is the same. It is really annoying because in my test devices (HTC Wildfire, Galaxy S I-II-III, Galaxy Mini, Galaxy Tab 10) this error NEVER occured, neither to me or my test buddy, looks like users do something different then us.

这一点,因为我不能给你有关情况的信息太多,有一件事我明白了,这是什么一个对话框的解雇,我却从未由code调用。

Because of this i cant give you too much information about the situation, there is one thing i see, it is something with a dialog's dismiss, which i actually never calls by code.

下面是错误:

java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:587)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:324)
at android.view.WindowManagerImpl$CompatModeWrapper.removeView(WindowManagerImpl.java:151)
at android.app.Dialog.dismissDialog(Dialog.java:328)
at android.app.Dialog$1.run(Dialog.java:119)
at android.app.Dialog.dismiss(Dialog.java:313)
at android.app.Dialog.cancel(Dialog.java:1113)
at hu.kulcssoft.ingyenkonyv.reader.Reader$JavaScriptInterface$1.run(Reader.java:199)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

有人可以帮我吗?我因为这个问题30-40错误报告周报,我实在想不通为什么会这样。

Can somebody help me? I got 30-40 error reports weekly because of this issue and i really cannot figure out why this is happening.

所有的建议将AP preciated。谢谢你,

All suggestions will be appreciated. Thanks,

推荐答案

辞退,在对话框的 onFinish 的onDestroy 发射活动。

Dismiss the dialog in your onFinish or onDestroy of the launching activity.

和/或

不要让你的活动处理的方向改变。

Don't let your activity handle the orientation changes.

您可能会发现这些问题的答案有所帮助: <一href="http://stackoverflow.com/questions/2745061/java-lang-illegalargumentexception-view-not-attached-to-window-manager">java.lang.IllegalArgumentException:查看未连接到窗口管理器

You might find some help in these answers : java.lang.IllegalArgumentException: View not attached to window manager

这篇关于图中未连接到窗口管理器(什么解决办法吗?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆