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

キーボードの登録を 2 回解除していると思われるため、"Attempted to unregister already unregistered input channel". これを解決するには、コードを調べて unregister メソッドの呼び出しを探して削除することをお勧めします (おそらく 2 番目の呼び出し)。

これが役立つことを願っています。

于 2013-04-07T08:37:20.557 に答える