我有我的應用程序汽車無在活動中的某些用戶除了具有以下不同的設備崩潰OnStart方法的一個嚴重問題:IllegalStateException異常 - 片段支持庫
Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1299)
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1310)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:541)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:525)
at android.support.v4.app.DialogFragment.show(DialogFragment.java:123)
我不能在我的模擬器本地重現此錯誤。我發現關於在計算器這個問題有幾個問題: here和 here
我已經嘗試了建議的解決方案,即不允許在onSaveInstance空束既不片段,也不活動。
但問題依然存在。這是我獲得的唯一崩潰報告,我不斷得到它。
有沒有人有工作解決方案?
它工作嗎,有什麼問題嗎? – 2013-02-16 22:47:56
反對:onPostResume不適用於android.support.v4.app.Fragment – Loda 2014-05-02 12:33:52
@Loda它是在android.support.v4.app.FragmentActivity,而不是片段 – CACuzcatlan 2015-05-27 19:00:01