title: android fragment- How to save states of views in a fragment when another fragment is pushed on top of it
body: <p>In android, a fragment (say <code>FragA</code>) gets added to the backstack and another fragment (say <code>FragB</code>) comes to the top. Now on hitting back <code>FragA</code> comes to the top and the <code>onCreateView()</code> is called. Now I had <code>FragA</code> in a particular state before <code>FragB</code> got pushed on top of it. </p>
  
  <p>My Question is how can I restore <code>FragA</code> to its previous state ? Is there a way to save state (like say in a Bundle) and if so then which method should I override ?</p>