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
除了上述解決方案之外,我通過向清單中的主要活動添加了 'android:configChanges =「orientation | keyboard」'解決了該問題。 – trvrr 2013-04-07 23:29:07