title: Fragment getArguments() returns null
body: <p>I have a <code>Fragment</code> which has a <code>TabHost</code> as the root layout as follows...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/tabhost"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
          &lt;TabWidget
              android:id="@android:id/tabs"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" /&gt;
  
          &lt;FrameLayout
              android:id="@android:id/tabcontent"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
  
              &lt;FrameLayout
                  android:id="@+id/tab_1"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent" /&gt;
  
              &lt;!-- More FrameLayouts here - each are placeholders for Fragments --&gt;    
  
          &lt;/FrameLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/TabHost&gt;
  </code></pre>
  
  <p>The code to create / update each <code>Fragment</code> for the tab content is as follows...</p>
  
  <pre><code>private void updateTab(String tabId, int placeholder) {
      FragmentManager fm = getFragmentManager();
      if (fm.findFragmentByTag(tabId) == null) {
          Bundle arguments = new Bundle();
          arguments.putInt("current_day", mCurrentTab);
          EpgEventListFragment fragment = new EpgEventListFragment();
          fragment.setArguments(arguments);
  
          fm.beginTransaction()
                  .replace(placeholder, new EpgEventListFragment(), tabId)
                  .commit();
      }
  }
  </code></pre>
  
  <p>In the <code>onCreate(...)</code> method of the <code>EpgEventListFragment</code> I then try to get the arguments <code>Bundle</code> but I always get <code>null</code> doing the following...</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      Bundle arguments = getArguments();
      if (arguments == null)
          Toast.makeText(getActivity(), "Arguments is NULL", Toast.LENGTH_LONG).show();
      else
          mCurrentDay = getArguments().getInt("current_day", 0);
  
      ...
  }
  </code></pre>
  
  <p>What am I missing here? I also tried <code>getArguments()</code> in <code>onAttach(...)</code> but I still got null. I'm new to using <code>Fragments</code> so I'm hoping there's a simple reason but I haven't come up with anything when searching.</p>