title: onCreateView() in Fragment is not called immediately, even after FragmentManager.executePendingTransactions()
body: <p>I read that if we need to create fragment immediately, we have to call <code>executePendingTransactions()</code> method on <code>FragmentManager</code>. Well, that's what I'm trying to do. Like this:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_game);
  
      FragmentManager fragmentManager = getFragmentManager();
      FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
  
      fragmentTransaction.add(R.layout.fragmentContainer, new MyFragment);
      fragmentTransaction.commit();
      fragmentManager.executePendingTransactions();
  
      foo(); // It is called before MyFragment's onCreateView()
  }
  </code></pre>
  
  <p>I'd like to know why <code>foo()</code> method is called BEFORE <code>MyFragment</code>'s <code>onCreateView()</code>. As you see, I'm calling <code>executePendingTransactions()</code> in UI Thread as it should be. I'm not messing here with threads at all.   </p>