【发布时间】:2013-05-25 09:58:53
【问题描述】:
我在我的项目中使用了使用片段构建它的提交方法。
无论如何,有时我会收到IllegalStateException: Can not perform this action after onSaveInstanceState 错误,但我找不到任何好的解决方案,只有这种方法commitAllowingStateLoss()。我将提交功能更改为commitAllowingStateLoss(),但没有长时间使用它来测试,所以这个功能可以帮助我吗?还有主要问题,commit() 和 commitAllowingStateLoss() 有什么区别?
【问题讨论】:
标签: java android android-fragments