title: getArgument is NULL, why?
body: <p>I am trying to pass values through a <code>Bundle</code>using <code>setArguments()</code> from an activity to another class extends <code>Fragment</code> when I press one of the listed items in a <code>ListView</code>. </p>
  
  <p>As shown below, I used a <code>Log.i</code> statement to know if the <code>Bundle</code> received is <code>null</code> or not. Unfortunately, it is always <code>null</code> and consequently, no data shows on the designated <code>TextView</code> of the class that extends <code>Fragment</code>. What I am missing or what is wrong with the code.</p>
  
  <p><strong><code>FragmentClass</code>:</strong></p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      // TODO Auto-generated method stub
  
      View view = inflater.inflate(R.layout.fragmentclasslayout, null);
      return view;
  }
  
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onActivityCreated(savedInstanceState);
  
      if (getArguments() != null) {
          Log.i(TAG, "getArgument is not null");
          int value = getArguments().getInt("pos");           
          TextView tv = (TextView) getView().findViewById(R.id.tvID);
          tv.setTextSize(value);
          tv.setText("size = "+value*10);
      }else {
          Log.i(TAG, "getArgument is null");
      }
  }
  </code></pre>
  
  <p><strong><code>MainClass_implements_onItemSelectedListener</code>:</strong></p>
  
  <pre><code>setContentView(R.layout.mainactivity);
  
      ListView mListView = (ListView) findViewById(R.id.list);
      ArrayAdapter&lt;String&gt; mArrayAdapter = new ArrayAdapter&lt;String&gt;(getApplicationContext(),
              R.layout.listviewlayout, R.id.tv, string);
      mListView.setAdapter(mArrayAdapter);
      mListView.setOnItemSelectedListener(this);
  }
  
  @Override
  public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position,
          long id) {
      // TODO Auto-generated method stub
  
      Fragment f = new FragmentClass();
      Bundle bundle = new Bundle();
  
      bundle.putInt("pos", (position+1));
      FragmentClass fc = new FragmentClass().newInstance(bundle);
      //f.setArguments(bundle);
  
      FragmentTransaction t =
              getFragmentManager().beginTransaction();
              t.replace(R.id.fragment00ID, f);
              t.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
              t.addToBackStack(null);
              t.commit();
  }
  </code></pre>
  
  <p><strong><code>mainActivity_layout</code>:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/container"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="horizontal"
  tools:ignore="MergeRootFrame"&gt;
  
  &lt;ListView
      android:id="@+id/list"
      android:layout_width="100px"
      android:layout_weight="1"
      android:layout_height="match_parent" /&gt;
  &lt;fragment
      android:name="com.example.fragmentwithlistview.FragmentClass"
      android:id="@+id/fragment00ID"
      android:layout_toRightOf="@+id/list"
      android:layout_width="wrap_content"
      android:layout_height="fill_parent"
      android:layout_weight="4" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong><code>FragmentClass_layout</code>:</strong></p>
  
  <pre><code>&lt;FrameLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"    
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/container"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  tools:ignore="MergeRootFrame"
  android:background="#FFFFFF"&gt;
  
  &lt;TextView
      android:id="@+id/tvID"
      android:textColor="#000000"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"/&gt;
  </code></pre>
  
  <p></p>