解决IllegalStateException: Can not perform this action after onSaveInstanceState

原创 2015年11月19日 21:04:25

今天遇到了这一异常:IllegalStateException: Can not perform this action after onSaveInstanceState

       点击之指向这一句代码  getFragmentManage().beginTransaction().replace(...).commit();

后百度之,把commit()改为commitAllowingStateLoss()就行了。


具体可参考 http://www.cnblogs.com/zgz345/archive/2013/03/04/2942553.html

话说我百度完就看的这个,不知道我这篇博客记录一下算原创还是转载类型的博客啊,如有错,还望告知

解决 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解决办法 首先我们需要弄清楚onSaveI...

Android 异常java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState.

Fragment java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

首先描述下所要实现的功能点: MainActivity使用Fragment实现底部菜单,底部共有四个菜单按钮,分别对应:AFragment,BFragment,CFragment,DFragment...
  • dsc114
  • dsc114
  • 2015年04月03日 17:40
  • 1758

IllegalStateException: Can not perform this action after onSaveInstanceState

在使用Fragment是会遇到如下的Exception: IllegalStateException: Can not perform this action after onSaveIns...

Android 异常 IllegalStateException: Can not perform this action after onSaveInstanceState

做项目的时候用到fragment,在fragment快速切换的时候发生了异常:IllegalStateException: Can not perform this action after onSa...

探究:IllegalStateException: Can not perform this action after onSaveInstanceState

最近在撸代码时,向一个Activity中添加了几个**fragment**,用底部的RadioButton进行切换。发现了一个bug:当按下返回键退出程序以后,重新打开程序就会出现崩溃,崩溃之后再打开...

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

04-28 13:18:45.030 19538-19538/com.chinatelematics.mb E/AndroidRuntime﹕ FATAL EXCEPTION: main P...

完全解析Android IllegalStateException("Can not perform this action after onSaveInstanceState")

完全解析Android中Fragment使用过程中遇到的异常:IllegalStateException("Can not perform this action after onSaveInstan...

深夜记一个大坑:illegalStateException:can not perform this action after onSaveInstanceState

好吧,其实重点不在于这个Excpetion…项目采用了MVP模式,有1个Activity,3个Fragment,通过Presenter来切换Fragment,其中,Presenter中创建并保存了这3...
  • To_yan
  • To_yan
  • 2016年08月18日 05:26
  • 287
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:解决IllegalStateException: Can not perform this action after onSaveInstanceState
举报原因:
原因补充:

(最多只允许输入30个字)