overide FragmentActivity onSaveInstanceState method like this.
1
2
3
4
5
6
7
8
9
|
@Override
public
void
onSaveInstanceState(Bundle outState) {
super
.onSaveInstanceState(outState);
if
(outState !=
null
) {
String FRAGMENTS_TAG =
"android:support:fragments"
;
// remove掉保存的Fragment
outState.remove(FRAGMENTS_TAG);
}
}
|
分类:
Android Pro
本文转自demoblog博客园博客,原文链接http://www.cnblogs.com/0616--ataozhijia/p/4863477.html如需转载请自行联系原作者
demoblog