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
I encountered the same question with you, and tried onSaveInstanceState() method, but did not work.
I think onSaveInstanceState() only works for the scenario that user jumps from one activity to another activity and back, it does not work in the scenario that user jumps among fragments in the same activity.
here is the guide document from Google. http://developer.android.com/guide/components/tasks-and-back-stack.html#ActivityState