I\'m trying to save data in a Fragment\'s onSaveInstanceState(), but the method is never called.
Can someone help?
public class MyFragment extends Fr
Try calling FragmentManager#saveFragmentInstanceState and Fragment#setInitialSavedState in Activity. You call saveFragmentInstanceState, then framework will call onSaveInstanceState. And you call setInitialSavedState, then framework will call onCreateView with no null argument 'Bundle savedInstanceState'.