关于cannot perform this action after onsaveinstancestate的解决办法

来源:互联网 发布:mysql ant value 编辑:程序博客网 时间:2024/05/20 21:22


最好在FragmentActivity#onResumeFragments()或者Activity#onPostResume()中使用。这两个方法会保证在activity恢复到最初状态后被调用

commit改为commitAllowingStateLoss()只能当做最后的手段


参考文章:http://www.eoeandroid.com/thread-550874-1-1.html

0 0
原创粉丝点击