title: Pass data between two fragments without using activity
body: <p>I want to pass data between two fragments without using activity and fragment activity.</p>
  
  <p>I don't want to pass data between fragments using activity like this : <a href="http://developer.android.com/training/basics/fragments/communicating.html" rel="nofollow">Communicating with Other Fragments</a></p>
  
  <p>Below is my scenario :</p>
  
  <p>I have one Parent fragment and inside that there are two child fragments.Now my need is to pass data between these two fragments.How to achieve this?</p>
  
  <p>I looked into this :  <a href="https://github.com/greenrobot/EventBus" rel="nofollow">Event Bus</a> but not getting working example for fragments.</p>
  
  <p>Is there any other alternative to pass data between fragments?</p>
  
  <p>Any help will be appreciated.</p>
  
  <p><strong>Edited as per InnocentKiller's answer :</strong></p>
  
  <p>In FragmentOne , I have implemented :</p>
  
  <pre><code>    FragmentTwo = new FragmentTwo();
      Bundle bundle = new Bundle();
      bundle.putString("Hello", "My name is Siddharth");
      fragment.setArguments(bundle);
  </code></pre>
  
  <p>In FragmentTwo, I have implemented :</p>
  
  <pre><code>    Bundle bundle = this.getArguments();
      String myInt = bundle.getString("Hello","Test");
      mStartTripButton.setText(myInt);
  </code></pre>