title: Android savedInstanceState return always null
body: <p>I have FragmentA and FragmentB, i'm in a FragmentB when i go back to FragmentA i need load last  value but my savedInstanceState return always null:</p>
  
  <pre><code>public static class PlaceholderFragment extends Fragment {
  
          private boolean active=false;
  
  
  
          @Override
          public void onSaveInstanceState(Bundle outState) {
              super.onSaveInstanceState(outState);
              outState.putBoolean("active",active);
  
          }
  
          @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
  
  
  
          }
  
          @Override
          public void onActivityCreated(Bundle savedInstanceState) {
              super.onActivityCreated(savedInstanceState);
  
              if(savedInstanceState!=null)
              {
  
                  active=savedInstanceState.getBoolean("active");
                  if(attivo==true)
                  {
                      Toast.makeText(getActivity(),"True",Toast.LENGTH_SHORT).show();
                  }
                  else
                  {
                     Toast.makeText(getActivity(),"False",Toast.LENGTH_SHORT).show();
  
                  }
              }
  
          }
  </code></pre>
  
  <p>to pass in FragmentB i use: </p>
  
  <pre><code>getFragmentManager().beginTransaction().replace(R.id.container,new PrefFragment()).addToBackStack("back").commit();
  </code></pre>