硬件键盘崩溃应用程序

时间:2013-04-07 08:10:16

标签: android

我注意到在我的应用程序中,当我添加硬件键盘时,应用程序关闭。由于这在其他应用程序中不会发生,我假设有一个我不知道的解决方案。崩溃的错误日志如下。对解决方案的任何想法?

04-07 02:55:07.885 I/Process (4121): Sending signal. PID: 4121 SIG: 9
04-07 02:55:07.915 W/InputDispatcher(498): channel '41c28930 com.prapps.inventory/com.prapps.inventory.InventoryActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
04-07 02:55:07.915 E/InputDispatcher(498): channel '41c28930 com.prapps.inventory/com.prapps.inventory.InventoryActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-07 02:55:07.925 W/InputDispatcher(498): Attempted to unregister already unregistered input channel '41c28930 com.prapps.inventory/com.prapps.inventory.InventoryActivity (server)'
04-07 02:55:07.925 I/ActivityManager(498): Process com.prapps.inventory (pid 4121) has died.
04-07 02:55:07.925 W/ActivityManager(498): Force removing ActivityRecord{416c8930 u0 com.prapps.inventory/.InventoryActivity}: app died, no saved state
04-07 02:55:07.925 I/WindowState(498): WIN DEATH: Window{41c28930 u0 com.prapps.inventory/com.prapps.inventory.InventoryActivity}
04-07 02:55:08.015 W/InputMethodManagerService(498): Got RemoteException sending setActive(false) notification to pid 4121 uid 10037

1 个答案:

答案 0 :(得分:0)

我相信您两次取消注册键盘,因此"Attempted to unregister already unregistered input channel"。 为了解决这个问题,我建议你仔细查看代码并尝试调用unregister方法并删除它(大概是第二次调用)。

我希望这会有所帮助。