无法查找窗口 - 从相同的应用程序不同的行为在2 Galaxy Nexus的 [英] Failed looking up window - different behaviors from same app on 2 galaxy nexus

查看:94
本文介绍了无法查找窗口 - 从相同的应用程序不同的行为在2 Galaxy Nexus的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个Galaxy Nexus的手机。该手机是相同的固件版本4.0.2,同样的版本号,相同的内核版本。当我部署到两者的使用Eclipse的手机完全相同的应用程序,我看到不同的行为,从每一个。

I have two Galaxy Nexus phones. The phones are the same firmware version 4.0.2, same build number, same kernel version. When I deploy the same exact app to both of the phones using Eclipse, I see different behaviors from each.

在一个电话,一切工作正常。在另一部手机,主要活动切换到另一个活动时,并返回到主之一,双方通过后退按钮,并通过完成并返回到创建它的活动的其他活动崩溃。唯一的线索我有这个问题是这样的错误:

On one phone, everything works as expected. On the other phone, the main Activity crashes when switching to another activity and back to the main one, both by back button and by other activities finishing and returning to the activity that created it. The only clue I have to this problem is this error:

04-18 17:43:30.811: I/ActivityManager(207): Displayed org.mitre.Mobile/.Activities.QueryActivity: +430ms
04-18 17:43:30.819: I/n*.w*.w*.ZoomButtonsCo*(4962): invoke: onVisibilityChanged listener: org.osmdroid.views.MapView$MapViewZoomListener@4181ecd8
04-18 17:43:30.843: E/InputQueue-JNI(4962): channel '41d66628 Panel:org.mitre.Mobile/org.mitre.Mobile.Activities.MobileActivity (client)' ~ Publisher closed input channel or an error occurred.  events=0x8
04-18 17:43:30.843: W/WindowManager(207): Force-removing child win Window{41d66628 Panel:org.mitre.Mobile/org.mitre.Mobile.Activities.MobileActivity paused=false} from container Window{420815c8 org.mitre.Mobile/org.mitre.Mobile.Activities.MobileActivity paused=false}
04-18 17:43:30.850: W/WindowManager(207): Failed looking up window
04-18 17:43:30.850: W/WindowManager(207): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@41f9e658 does not exist
04-18 17:43:30.850: W/WindowManager(207):   at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7029)
04-18 17:43:30.850: W/WindowManager(207):   at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7020)
04-18 17:43:30.850: W/WindowManager(207):   at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2180)
04-18 17:43:30.850: W/WindowManager(207):   at com.android.server.wm.Session.remove(Session.java:149)
04-18 17:43:30.850: W/WindowManager(207):   at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:124)
04-18 17:43:30.850: W/WindowManager(207):   at com.android.server.wm.Session.onTransact(Session.java:111)
04-18 17:43:30.850: W/WindowManager(207):   at android.os.Binder.execTransact(Binder.java:338)
04-18 17:43:30.850: W/WindowManager(207):   at dalvik.system.NativeStart.run(Native Method)

我还没有真正发现任何与此相关的错误信息在互联网上是有用的。我有android的一些经验,但是这一次真的难倒我。我最初以为这是一个新星发射的问题(这个问题有它的手机),但我在另一部手机安装的新星,仍然看到了同样的行为。

I haven't really found anything useful on the internet related to this error message. I have some experience with android, but this one has really stumped me. I initially thought this was a nova launcher problem (the phone with the problem has it), but I installed nova on the other phone and still saw the same behaviors.

与不正常是我个人的手机应用程序的手机,另一种是工作电话。

The phone with the app that doesn't work properly is my personal phone, the other is a work phone.

推荐答案

刚刚发现,为什么每一次活动死亡。在设置>开发人员选项,有一个名为不保留活动作为用户离开其尽快消灭每一个活动复选框。盒子被检查。我只是未选中它。这说明了一切。

Just found out why every activity dies. In Settings > Developer Options, there is a check box called "Don't keep activities" "Destroy every activity as soon as the user leaves it". The box was checked. I just unchecked it. That explains everything.

这篇关于无法查找窗口 - 从相同的应用程序不同的行为在2 Galaxy Nexus的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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