gpt4 book ai didi

android - 蜂窝 Activity 自发地重新启动

转载 作者:搜寻专家 更新时间:2023-11-01 09:12:58 27 4
gpt4 key购买 nike

在 Honeycomb 模拟器上测试我的应用程序时,我遇到了一个非常奇怪的问题。当“平板电脑”旋转到纵向时,我的主要 Activity 似乎卡住了,并一遍又一遍地重新启动。下面的堆栈跟踪似乎没有说明发生了什么,而且我在调试时也无法确定重启。同样的事情不会发生在 Gingerbread 手机上,它使用相同的纵向布局。

我还没有 Honeycomb 设备,所以我看不出这是否是模拟器的一个怪癖。

08-02 21:28:02.137: INFO/ActivityManager(81): Starting: Intent { cmp=com.espian.formulae.pro/.Host (has extras) } from pid 419
08-02 21:28:02.193: WARN/WindowManager(81): Failure taking screenshot for (354x230) to layer 21010
08-02 21:28:04.136: INFO/ActivityManager(81): Starting: Intent { cmp=com.espian.formulae.pro/.Host (has extras) } from pid 419
08-02 21:28:04.209: WARN/WindowManager(81): Failure taking screenshot for (354x230) to layer 21015
08-02 21:28:04.230: WARN/ActivityManager(81): Launch timeout has expired, giving up wake lock!
08-02 21:28:06.127: DEBUG/dalvikvm(419): GC_CONCURRENT freed 105K, 3% free 7353K/7559K, paused 13ms+161ms
08-02 21:28:06.178: WARN/ActivityManager(81): Activity idle timeout for ActivityRecord{40841ae0 com.espian.formulae.pro/.Host}
08-02 21:28:06.517: INFO/ActivityManager(81): Starting: Intent { cmp=com.espian.formulae.pro/.Host (has extras) } from pid 419
08-02 21:28:06.567: WARN/WindowManager(81): Failure taking screenshot for (354x230) to layer 21020
08-02 21:28:08.447: INFO/ActivityManager(81): Starting: Intent { cmp=com.espian.formulae.pro/.Host (has extras) } from pid 419

预先感谢您的帮助

最佳答案

终于找到问题了!我在 ActionBar 中有一个微调器,并且没有意识到在首次创建 Activity 时激活了监听器。在横向模式下,这只是在多 View Pane 中添加了另一个菜单(我最近注意到这是另一个错误),但在纵向模式下,每次创建最后一个时都会触发一个新 Activity 。

关于android - 蜂窝 Activity 自发地重新启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6918917/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com