原地址:http://www.educity.cn/wenda/158744.html
android 关于InputDispatcher出现Consumer异常的解决方法
10-23 03:24:46.346: ERROR/InputDispatcher(61): channel ‘40774ac8 coinv.panfa/coinv.panfa.activities.MeinvFlashActivity (server)‘ ~ Consumer closed input channel or an error occurred. events=0x8
10-23 03:24:46.346: ERROR/InputDispatcher(61): channel ‘40774ac8 coinv.panfa/coinv.panfa.activities.MeinvFlashActivity (server)‘ ~ Channel is unrecoverably broken and will be disposed!
10-23 03:24:46.406: ERROR/InputDispatcher(61): Received spurious receive callback for unknown input channel. fd=148, events=0x8
看一下manifest.xml,嘿嘿,
因为之前无法找到原因,所以只好在manifest.xml对应的activity标记中通过添加如下属性将该布局强置为竖屏模式显示了:
android:launchMode="singleTask" android:screenOrientation="portrait"
后来通过尝试发现可以通过在manifest.xml对应的activity标记中改成添加如下属性:
android:configChanges="orientation|keyboardHidden"