title: How to update a textview from one fragment to an other fragment on same activity in android
body: <p>I have single Activity and 2 fragments.Tab screen is divided into 2 parts.User Edit in editfield and press button(from FragmentA) then a textview should be updated that is on fragmentB on same Screen.<a href="https://i.stack.imgur.com/Zcuhv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zcuhv.png" alt="enter image description here"></a></p>
  
  <pre><code>YourNewFragment ldf = new YourNewFragment();
          Bundle args = new Bundle();
          args.putString("YourKey", "YourValue");
          ldf.setArguments(args);
  
          // Inflate the fragment
          getFragmentManager().beginTransaction().add(R.id.container, ldf)
                  .commit();
  </code></pre>
  
  <p>here is Fragment B In onCreateView of the new Fragment:</p>
  
  <pre><code>String value = getArguments().getString("YourKey");
  </code></pre>