IllegalStateException: Can not perform this action after onSaveInstanceState
来源:互联网 发布:手机恢复数据软件 编辑:程序博客网 时间:2024/05/18 04:29
IllegalStateException: Can not perform this action after onSaveInstanceState
我的问题是使用viewgroup,按返回的时候,
网上搜很多答案
http://stackoverflow.com/questions/7575921/illegalstateexception-can-not-perform-this-action-after-onsaveinstancestate-h
以下是我的当前解决的, 不确定是不是,至少不报错了,有时间再测试
说api11以后,super.onSaveInstanceState(outState); 没有调用这个,不过加了好像也有问题。
下面是我现在的解决方法 -----2013年6月3日15:05:55 好像不行,过几天再测试
@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) {// TODO Auto-generated method stubif(keyCode == KeyEvent.KEYCODE_BACK){this.finish();this.getParent().finish();}return super.onKeyDown(keyCode, event);}
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- Android 异常 IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决Fragment IllegalStateException: Can not perform this action after onSaveInstanceState
- IllegalStateException: Can not perform this action after onSaveInstanceState解决办法
- java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- Fragment IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决异常IllegalStateException: Can not perform this action after onSaveInstanceState
- IllegalStateException: Can not perform this action after onSaveInstanceState解决办法
- IllegalStateException: Can not perform this action after onSaveInstanceState
- apache ab测试工具中发送POST请求的具体实现
- source insight中文注释乱码问题的解决方案
- Fedora 17安装QQ2012
- POJ 2886 单点更新
- bootstrap 学习之路 10 (javascript DOM 编程)
- IllegalStateException: Can not perform this action after onSaveInstanceState
- MFC让系统托盘菜单失去焦点时自动消失
- MyEclipse设置之代码提示功能
- easyui的tab加载页面中的form重复提交
- SOAP 语法
- 指定两点可算出最大点和最小点
- Fedora 13 交叉编译 mksquashfs 出现错误
- MyEclipse设置之解决MyEclipse在代码提示时经常卡死的问题
- 高新技术之反射