java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.

  1. 1

    Fragment must be a public static class to be properly recreated from instance state

    Stack Overflow | 3 months ago | Falling Into Infinity
    java.lang.IllegalStateException: Fragment null must be a public static class to be properly recreated from instance state.
  2. 0

    Creating an account on a slow connection can crash if activity is detached

    GitHub | 3 years ago | maxme
    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Exception in onResume

    GitHub | 2 years ago | sohayb
    java.lang.RuntimeException: Unable to resume activity {com.my.app/com.my.app.ui.activities.MainActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

  1. sbattaglino 1 times, last 3 months ago
  2. ank_07 1 times, last 4 months ago
  3. Agócs Tamás 153 times, last 4 months ago
  4. Macapon 2 times, last 7 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Fragment null must be a public static class to be properly recreated from instance state.

    at android.support.v4.app.BackStackRecord.doAddOp()
  2. Android Support v4
    DialogFragment.show
    1. android.support.v4.app.BackStackRecord.doAddOp(BackStackRecord.java:435)
    2. android.support.v4.app.BackStackRecord.add(BackStackRecord.java:414)
    3. android.support.v4.app.DialogFragment.show(DialogFragment.java:154)
    3 frames
  3. com.androidapp.base
    BaseActivity.showDialogFragment
    1. com.androidapp.base.BaseActivity.showDialogFragment(BaseActivity.java:78)
    1 frame
  4. com.androidapp
    MainActivity$6.onClick
    1. com.androidapp.MainActivity.showNewDialog(MainActivity.java:304)
    2. com.androidapp.MainActivity$6.onClick(MainActivity.java:228)
    2 frames