title: Android: Passing data from child fragment to parent fragment
body: <p>I need to pass some data from the child fragment to the parent fragment that I will be able to read when I go back to the parent fragment. In detail:</p>
  
  <p>I have a FragmentActivity that calls FragmentParent. From FragmentParent I call FragmentChild like this:</p>
  
  <pre><code>FragmentChild fragmentChild = new FragmentChild();
  FragmentTransaction transaction = getFragmentManager().beginTransaction();
  transaction.replace(R.id.frl_view_container, fragmentChild);
  transaction.addToBackStack(null);
  ctransaction.commit();
  </code></pre>
  
  <p>In FragmentChild I set a string value which I need to pass back to FragmentParent and then I return back to FragmentParent.</p>
  
  <pre><code>String result = "OK";
  getFragmentManager().popBackStack();
  </code></pre>
  
  <p>What is the best/proper way to read the result string in FragmentParent?</p>