title: class life cycle with ActionBar Sherlock Tab fragments
body: <p>I'm working on one of my first Android applications and got stuck with the understanding of how controllers/classes lifecycle are arranged. I'm coming from an iOS background.</p>
  
  <p>Basicly what I did was following this <a href="http://blog.eilfa.com/actionbarsherlock-with-fragments/" rel="nofollow">simple tutorial</a></p>
  
  <p>So from what I understand I bind a TabListener to the Fragment. When switching tabs the TabListener's <code>onTabSelected()</code> gets called and each time a new instance of FragmentA/Fragment B is created.</p>
  
  <p>That leads to the fact that every time I switch tabs all <code>onCreate..()</code> methods are called again. </p>
  
  <p>I don't want to create a new fragment instance every time I switch tabs but rather use the one which was created intially at application start.</p>
  
  <p>The question is how can I switch tabs without killing the fragments in there?</p>