Android keyDispatchingTimedOut问题

时间:2010-11-11 05:35:26

标签: android

在我的Android应用程序中,我正在实现地图功能。它有一个标签栏,当我通过标签将一个活动跳转到另一个活动时,它完美地工作。但是当我来到地图活动并试图通过“设备的后退键”移动时,整个应用程序冻结,几秒钟后我出现了可怕的力量关闭对话框出现,我得到了错误。

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

请指导我为什么会发生这种情况..提前感谢

1 个答案:

答案 0 :(得分:3)

当代码获取窗口泄漏类型的问题或我们尝试对同一活动执行许多操作时,会出现此类问题...