0

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

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
4

1 回答 1

0

我相信您正在注销您的键盘两次,因此"Attempted to unregister already unregistered input channel". 为了解决这个问题,我建议您检查您的代码并尝试查找对 unregister 方法的调用并将其删除(可能是第二次调用)。

我希望这有帮助。

于 2013-04-07T08:37:20.557 回答