title: fragment onCreateView called many times
body: <p>I'm attaching the fragment (many fragments to <code>FrameLayout</code>) of an <code>Activity</code> each fragment has its own view inflated in <code>onCreateView()</code>.</p>
  
  <p>Now,</p>
  
  <p>If I rotate the screen Landscape/Protrait the <code>onCreateView()</code> of the fragment is called instead of calling its attached Activity's <code>onCreate()</code> method. Because of this the view are rendered twice.</p>
  
  <p>I want the Activity's <code>onCreate()</code> to be called every time when there is a config changes. Is it possible?</p>
  
  <p><strong>Activity :</strong> <em>MainActivity.java</em></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      getSupportFragmentManager().beginTransaction()
          .add(R.id.layout_replace, new MyFragment()).commit();
  }
  </code></pre>
  
  <p><strong>Fragment :</strong> <em>MyFragment.java</em></p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {         
      return (ScrollView)inflater.inflate(R.layout.some_layout, container, false);
  }
  </code></pre>