I finally figured out the problem, at least in my case. I had an overridden onSaveInstanceState
in my FragmentActivity that did not call super.onSaveInstanceState(Bundle outState)
. Once I added that in, the Fragment.onSaveInstanceState(Bundle outState)
functioned normally.
More Related Contents:
- Retrieve a Fragment from a ViewPager
- Update ViewPager dynamically?
- Communicating between a fragment and an activity – best practices
- How do I get the currently displayed fragment?
- Separate Back Stack for each tab in Android using Fragments
- Callback to a Fragment from a DialogFragment
- MapView in a Fragment (Honeycomb)
- How to handle Handler messages when activity/fragment is paused
- Update Fragment from ViewPager
- support FragmentPagerAdapter holds reference to old fragments
- Best practice for nested fragments in Android 4.0, 4.1 (
- How to add “Go Back” function in WebView inside Fragment?
- Android: Can you nest Fragments?
- Fragments in Android 2.2.1, 2.3, 2.0. Is this possible?
- What is the difference between Fragment and FragmentActivity?
- java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.view.View.getImportantForAccessibility()’ on a null object reference
- Calling startIntentSenderForResult from Fragment (Android Billing v3)
- How to setContentView in a fragment?
- Nested fragments disappear during transition animation
- Set state of BottomSheetDialogFragment to expanded
- Switching between Fragment view
- How do I open a new fragment from another fragment?
- Android 4.2: back stack behaviour with nested fragments
- How to set a Fragment tag by code?
- Android Studio and android.support.v4.app.Fragment: cannot resolve symbol
- How to handle AsyncTask onPostExecute when paused to avoid IllegalStateException
- How to Handle backPress with Fragment
- Is it possible to access the current Fragment being viewed by a ViewPager?
- Button Listener for button in fragment in android
- Android replace fragment still displays some of the replaced fragment