Android出现W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection闪退原因
2016-09-20 16:14
393 查看
Android出现W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection闪退原因
一、项目出现闪退过程:
在项目中集成OCR识别时,MainActivity跳转到CameraActivity进行拍照,拍照以后上传云脉服务器进行OCR识别,返回XML字符串在CameraActivity接收后,页面跳转回MainActivity,并将返回数据传给MainActivity进行显示,但是当MainActivity用onActivityResult接收到数据后,程序没有任何异常直接闪退,logcat没有任何error,log中出现
W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
二、原因
在无数次调试之后,问题锁定在屏幕旋转上,因为默认没有关闭屏幕旋转,当跳转到CameraActivity后,手机横屏进行拍照,屏幕旋转至横屏,当跳回MainActivity后,出现闪退情况。因为测试机少,所以出现这个问题的设备只能锁定在Android4.4.2系统以及该设备为虚拟菜单栏,而Android6.0以及物理菜单栏的设备不会出现这种情况。三、解决方案
(1)关闭屏幕自动旋转。(2)暂未找到,有想法可以与我交流...
相关文章推荐
- IInputConnectionWrapper: showStatusIcon on inactive InputConnection
- showStatusIcon on inactive InputConnection
- IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
- android inactive InputConnection
- Android出现W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection闪退
- Android开发出现Java.lang.IllegalStateException的原因;Target host must be null,or set in parameters
- Android studio 启动时出现Android studio was unable to create a local connection in order
- Android 使用反射调用Hide方法setShowSoftInputOnFocus
- Android studio 启动时出现Android studio was unable to create a local connection in order
- No input file specified 出现的原因及解决方法
- Android 3.0 访问donet webService 出现 android.os.NetworkOnMainThreadException错误!
- android 中文 api (87) —— BaseInputConnection
- Android编译出现Multiple substitutions specified in non-positional format
- Android编译出现Multiple substitutions specified in non-positional format
- 启动tomcat,出现The Apache Tomcat Native library which allows optimal performance in production environments was not found on the jav
- 出现"VMProcessPageFault Error: Page fault occurred while in power handler"原因及解决方法
- "Library used incorrectly\r\nNo transaction is active on this connection
- Android编译出现Multiple substitutions specified in non-positional format
- 在Android程序里显示等待滚动圈(使用ProgressDialog)| Show waiting rolling circle in android application (using ProgressDialog)
- Socket编程,出现 Socket operation on non-socket 错误的原因