android异常:Can not perform this action after onSaveInstance
2016-08-17 19:43
459 查看
项目中一个主类MainActivity包含四个fragment,启动一个fragment报错如题,经过查找资料,最终通过重写MainActivity中onBackPressed()方法解决,具体代码如下:
屏蔽掉super.onBackPressed();,加上finish();
参考http://zhiweiofli.iteye.com/blog/1539467
@Override public void onBackPressed() { //super.onBackPressed(); finish(); }
屏蔽掉super.onBackPressed();,加上finish();
参考http://zhiweiofli.iteye.com/blog/1539467
相关文章推荐
- Android 异常 IllegalStateException: Can not perform this action after onSaveInstanceState
- Android Fragment State Saving. 以及 Can not perform this action after onSaveInstanceState 异常.
- Android 异常java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
- Android-异常处理-Can not perform this action after onSaveInstanceState
- Android can not perform this action after onSaveInstanceState 问题解决
- android异常:Can not perform this action after onSaveInstanc
- 完全解析Android IllegalStateException("Can not perform this action after onSaveInstanceState")
- 使用自定义DialogFragment出现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
- 由FragmentTabHost导致的Can not perform this action after onSaveInstanceState异常
- java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState 异常解决方案
- Can not perform this action after onSaveInstanceState 异常
- Android 错误:IllegalStateException: Can not perform this action after onSaveInstanceState
- IllegalStateException: Can not perform this action after onSaveInstanceState 异常解决
- Can not perform this action after onSaveInstanceState(fragment异常)
- Android - IllegalStateException: Can not perform this action after onSaveInstanceState
- 【Android策略】Can not perform this action after onSaveInstanceState with DialogFragment
- Fragment提交commit时候异常(Can not perform this action after onSaveInstanceState)
- Android ShowDialog : IllegalStateException: Can not perform this action after onSaveInstanceState