title: Stop fragment from being recreated after resume?
body: <p>I am using several <code>fragment</code>s to be dynamically added into <code>activity</code>. Everything works fine, when I press back-button, the <code>fragment</code>s go to <code>backstack</code>. And when I <code>resume</code> it, it appears. But everytime on <code>Resume</code>, it is recreating the <code>fragment</code> and call <code>onCreateView</code>. I know it is a normal behavior of the <code>fragment</code> lifecycle.</p>
  
  <p>This is my <code>onCreateView</code>:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      View rootView = inflater.inflate(
              R.layout.competitive_programming_exercise, container, false);
      return rootView;
  }
  </code></pre>
  
  <p>I want to stop those <code>fragment</code>s from recreating. I tried with <code>onSavedInstanstate</code> but nothing is working. How can I accomplish that?</p>