android 关于InputDispatcher出现Consumer错误的解决办法
原地址: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"
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。