标签:android开发
在开发的时候突然发现在输入文本框中点击输入法的删除按钮,发现app莫名其妙退出 了。log信息如下:
01-31 16:57:59.524: W/IInputConnectionWrapper(1259): clearMetaKeyStates on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): clearMetaKeyStates on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): beginBatchEdit on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): getTextBeforeCursor on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): endBatchEdit on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): sendKeyEvent on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): sendKeyEvent on inactive InputConnection 01-31 16:57:59.624: W/IInputConnectionWrapper(1259): clearMetaKeyStates on inactive InputConnection 01-31 16:57:59.684: W/IInputConnectionWrapper(1259): showStatusIcon on inactive InputConnection
所以出现了这种Warn的时候请看看自己代码是否重写了onKeyDown或onKeyUp方法,检查下是否有逻辑上的错误。
Android showStatusIcon on inactive InputConnection异常
标签:android开发
原文地址:http://blog.csdn.net/cml_blog/article/details/43342673