当前位置: 代码迷 >> Android >> android 关于InputDispatcher出现Consumer错误的解决办法
  详细解决方案

android 关于InputDispatcher出现Consumer错误的解决办法

热度:9   发布时间:2016-05-01 20:45:01.0
android 关于InputDispatcher出现Consumer异常的解决方法
10-23 03:24:46.346: ERROR/InputDispatcher(61): channel '40774ac8 com.marsor.meinv.panfa/com.marsor.meinv.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 com.marsor.meinv.panfa/com.marsor.meinv.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"


转自:http://qianxuechao.blog.163.com/blog/static/91813499201192311567242/
  相关解决方案