IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
来源:互联网 发布:修睿乔杉潘斌龙网络剧 编辑:程序博客网 时间:2024/06/09 14:07
Please check my answer here. Basically I just had to :
@Overrideprotected void onSaveInstanceState(Bundle outState) { //No call for super(). Bug on API Level > 11.}
don't make the call to super()
on the saveInstanceState
method. This was messing things up...
EDIT: after some more research, this is a know bug in the support package.
If you nead to save the instance, and add something to your outState
Bundle
you can use the following :
@Overrideprotected void onSaveInstanceState(Bundle outState) { outState.putString("WORKAROUND_FOR_BUG_19917_KEY", "WORKAROUND_FOR_BUG_19917_VALUE"); super.onSaveInstanceState(outState);}http://stackoverflow.com/questions/7575921/illegalstateexception-can-not-perform-this-action-after-onsaveinstancestate-h
- IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
- Android4.0 bug Can not perform this action after onSaveInstanceState - How to prevent?
- 解决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
- 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
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- 解决Fragment 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
- 解决IllegalStateException: Can not perform this action after onSaveInstanceState
- Fragment 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
- 排序
- android:学习小结
- 关于技能的文章
- Dreamweaver cs6 中设置默认文档格式为html5的方法
- 正则表达式regular expression详述
- IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
- DOM4J
- 好东西是要分享的,下了一个优秀的USB PC分析软件,不逊于Bus Hound
- offsetof宏解析
- Errors were encountered while processing: rabbitmq-server
- simpleAdapter
- Eclipse中的快捷键功能
- 敏捷开发测试
- adb server is out of date. kill.....解决办法