title: Sending Bundle with Fragment Transaction
body: <p>Here is my code that is not working:</p>
  
  <p>// Sending bundle this way:</p>
  
  <pre><code>        String topUser = String.valueOf(scores.get(arg2));
  
          Bundle data = new Bundle();
          data.putString("userprofile", topUser);
  
          FragmentTransaction t = getActivity().getSupportFragmentManager()
                  .beginTransaction();
          SherlockListFragment mFrag = new ProfileFragment();
          mFrag.setArguments(data);
          t.replace(R.id.main_frag, mFrag);
          t.commit();
  </code></pre>
  
  <p>// Retrieving this way:</p>
  
  <pre><code>        Bundle extras = getActivity().getIntent().getExtras();
          userName = extras.getString("userprofile");
  </code></pre>
  
  <p>Basically, the data isn't received.  Am I on the right track or is there a better way of doing this?</p>