今天遇到了这一异常: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
话说我百度完就看的这个,不知道我这篇博客记录一下算原创还是转载类型的博客啊,如有错,还望告知
本文介绍了解决Android开发中遇到的IllegalStateException: Cannot perform this action after onSaveInstanceState异常的方法,通过将commit()替换为commitAllowingStateLoss()来避免该问题。
510

被折叠的 条评论
为什么被折叠?



