gpt4 book ai didi

Android keyDispatchingTimedOut问题

转载 作者:行者123 更新时间:2023-11-29 18:23:08 25 4
gpt4 key购买 nike

在我的 android 应用程序中,我正在实现 map 功能。当我通过标签将一个 Activity 跳到另一个 Activity 时,它有一个标签栏,它工作得很好。但是当我进入 map Activity 并尝试通过“设备后退键”从它移动时,整个应用程序卡住,几秒钟后我看到可怕的强制关闭对话框出现,我得到了错误。

11-11 10:53:26.083: ERROR/ActivityManager(85): ANR in com.project.activity 
(com.project.activity/.MapActivity)
11-11 10:53:26.083: ERROR/ActivityManager(85): Reason: keyDispatchingTimedOut
11-11 10:53:26.083: ERROR/ActivityManager(85): Load: 2.64 / 1.75 / 1.64
11-11 10:53:26.083: ERROR/ActivityManager(85): CPU usage from 8749ms to 209ms ago:
11-11 10:53:26.083: ERROR/ActivityManager(85): dianic.activity: 18% = 16% user + 1% kernel / faults: 1938 minor
11-11 10:53:26.083: ERROR/ActivityManager(85): mediaserver: 14% = 14% user + 0% kernel
11-11 10:53:26.083: ERROR/ActivityManager(85): system_server: 4% = 2% user + 1% kernel / faults: 167 minor
11-11 10:53:26.083: ERROR/ActivityManager(85): dhd_dpc: 1% = 0% user + 1% kernel
11-11 10:53:26.083: ERROR/ActivityManager(85): android.vending: 0% = 0% user + 0% kernel / faults: 57 minor
11-11 10:53:26.083: ERROR/ActivityManager(85): synaptics_wq: 0% = 0% user + 0% kernel
11-11 10:53:26.083: ERROR/ActivityManager(85): e.process.gapps: 0% = 0% user + 0% kernel / faults: 3 minor
11-11 10:53:26.083: ERROR/ActivityManager(85): wpa_supplicant: 0% = 0% user + 0% kernel
11-11 10:53:26.083: ERROR/ActivityManager(85): logcat: 0% = 0% user + 0% kernel
11-11 10:53:26.083: ERROR/ActivityManager(85): TOTAL: 41% = 36% user + 5% kernel + 0% softirq

请指导我为什么会这样..提前致谢

最佳答案

当代码遇到窗口泄漏类型的问题或当我们尝试对同一 Activity 执行许多操作时,就会出现这种类型的问题......

关于Android keyDispatchingTimedOut问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4151634/

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