Can not perform this action after onSaveInstanceState

java.lang.RuntimeException: Unable to resume activity {xxxx/xx.ui.act.InsideTaskAct}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3241)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3272)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1489)
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1507)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:634)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:613)
at xx.ui.act.InsideTaskAct.createFragment(InsideTaskAct.java:627)
at xx.ui.act.InsideTaskAct.selectedListener(InsideTaskAct.java:573)
at xx.ui.act.InsideTaskAct.onResume(InsideTaskAct.java:256)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1265)
at android.app.Activity.performResume(Activity.java:6189)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3230)
... 9 more
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1489)
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1507)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:634)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:613)
at xx.ui.act.InsideTaskAct.createFragment(InsideTaskAct.java:627)
at xx.ui.act.InsideTaskAct.selectedListener(InsideTaskAct.java:573)
at xx.ui.act.InsideTaskAct.onResume(InsideTaskAct.java:256)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1265)
at android.app.Activity.performResume(Activity.java:6189)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3230)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3272)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)

posted on 2016-07-20 16:10  洛易  阅读(312)  评论(0编辑  收藏  举报