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