I have a Fragment F attached on Activity A. When another activity becomes front-activity it is called onSaveInstanceState. I've overrided that function and it looks like:
public void onSaveInstanceState(Bundle outState){
saveState_to_outstate
}
Now, when the Fragment F is front again it is called onViewCreated(View view, Bundle savedInstanceState). I would like to restore previously saved state but I cannot because savedInstanceState is null though it was written before in onSaveInstanceState.
Why it happened?