title: how to transfer extra data from one fragment to another through activity
body: <p>For example, In a list view hosted by <strong>ListActivity</strong>, when user click on a item on the list, a new activity will be launched, and previous activity transfer extra data to the new activity like below:</p>
  
  <pre><code>public class Notepadv2 extends ListActivity {
      ...
  
     @Override
      protected void onListItemClick(ListView l, View v, int position, long id) {
          super.onListItemClick(l, v, position, id);
  
          Intent i = new Intent(this, NoteEdit.class);
          i.putExtra(NotesDbAdapter.KEY_ROWID, id);
          startActivityForResult(i, ACTIVITY_EDIT);
       }
  }
  </code></pre>
  
  <p>How it should be If I use fragments? I mean if I have one Activity which host 2 fragments, and make fragments transactions like below:</p>
  
  <pre><code>// Create new fragment and transaction
  Fragment newFragment = new ExampleFragment();
  FragmentTransaction transaction = getFragmentManager().beginTransaction();
  
  // Replace whatever is in the fragment_container view with this fragment,
  // and add the transaction to the back stack
  transaction.replace(R.id.fragment_container, newFragment);
  transaction.addToBackStack(null);
  
  // Commit the transaction
  transaction.commit();
  </code></pre>
  
  <p>how can I transfer extra data from one fragment to the other fragment through the host activity?</p>
  
  <p>I know on android developer webpage, there is a <a href="http://developer.android.com/guide/topics/fundamentals/fragments.html">good document</a> of how to use fragment and how to communicate with activity, but there is no description about how to transfer data from one fragment to another....</p>