title: how to pass string data through fragments
body: <p>I've been working between <code>Fragment</code>'s using <code>FragmentManager</code>'s to keep the view of the navigation drawer in my project.</p>
  
  <p>What I want is to get a String from <code>Fragment</code> A and show it on a <code>TextView</code> on the <code>Fragment</code> B. As I'm not working with <code>Intent</code>'s, I don't know how to do that. Can anyone please help me?</p>
  
  <p>Here is a piece of my code to explain how i change the views in my project.</p>
  
  <pre><code>Button button = (Button) view.findViewById(R.id.btn_next);
  button.setOnClickListener(new View.OnClicklistener(){
  
      @Override
      public void onClick(View v){
  
          Fragment frag_A = new ViewClassB();
          FragmentManager fm = getSupportFragmentManager();
          fm.beginTransaction()
              .replace(R.id.container, frag_A)
              .commit();
  
      }                           
  });
  </code></pre>
  
  <p>I have the Main class that have a xml with the Fragment Views called container, there is where i show the content of the Activity.</p>
  
  <p>Here is an example for that XML:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.ViewClassA"
      &gt;
  
  
      &lt;FrameLayout android:id="@+id/container"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"
          android:background="#fff"
          xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textAppearance="?android:attr/textAppearanceLarge"
              android:text="Welcome"
              android:id="@+id/text1"
              android:layout_gravity="center"
              android:layout_marginTop="20dp"
              android:textColor="#52D5EC" /&gt;
  
           &lt;/LinearLayout&gt;
       &lt;/FrameLayout&gt;
   &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>That's how I show the content in my project. In the View class B I just do a <code>onCreateView</code> to inflate the elements and work with them.</p>
  
  <p>Again, what I need is to pass a String from the <code>Fragment A</code> to the <code>Fragment B</code>. I'm not using intents. </p>
  
  <p>Can anyone help me, please?</p>