Can not perform this action after onSaveInstanceState
来源:互联网 发布:java 启动main方法 编辑:程序博客网 时间:2024/05/21 13:56
今天在用到fragment的时候闪退报错,Can not perform this action after onSaveInstanceState
原因是我在结束一个activity后返回给主activity然后更改了fragment.
commit方法一定要在Activity.onSaveInstance()之前调用
最后把commit替换成commitAllowingStateLoss
还没来得及看源码,看完了再写上来
0 0
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- Can not perform this action after onSaveInstanceState
- 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
- llegalStateException: 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
- Android 异常 IllegalStateException: Can not perform this action after onSaveInstanceState
- 仿射集合凸集
- ExtJS操作数据时的等待界面
- HDU 5006 Resistance (2014年鞍山赛区网络赛J题)
- 线段树 入门总结 hdu 1754 1161
- 三分法
- Can not perform this action after onSaveInstanceState
- 【从头开始写操作系统系列】实现一个-GDT(2)
- 求1!+2!+3!+……+n!,n由键盘输入
- Java 解读基于Type Erasure的泛型
- Linux环境下编程(二)——线程的同步
- javaweb1000例 (一)
- 变量名的本质
- 【vim】vim 的backspace不能使用
- 对串级PID和单级PID的理解(基于匿名微型六轴)