解决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
  • 1585

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

最近做了一个APP准备验收,之前都是做里边的功能,6.0以上的权限都是进去的时候都申请好了,然而最近登陆进去申请授权后就崩了,不禁让人菊花一紧,之前咋没出现,再次点击去,APP可以正常运行,玩我?但是...

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:当按下返回键退出程序以后,重新打开程序就会出现崩溃,崩溃之后再打开...

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

04-28 13:18:45.030 19538-19538/com.chinatelematics.mb E/AndroidRuntime﹕ FATAL EXCEPTION: main P...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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