title: Android pass value from child fragment back to parent fragment
body: <p>I was having some problem when trying to get the value from fragment upon dismiss. My fragment A will open up fragment B, when the button in fragment B is clicked, I wanted to get a value and pass back to fragment A to be displayed. However, I am not sure how to do it. </p>
  
  <p><strong>Fragment A:</strong></p>
  
  <pre><code>@Click(R.id.buttonAttach)
  void buttonAttachClicked(View v){
          SupportAttachFileFragment fragment = new SupportAttachFileFragment_();
          fragment.show(getFragmentManager(), null);
  
          // get value here and display
          textViewLogCounter.setText();
      }
  }
  </code></pre>
  
  <p><strong>Fragment B:</strong></p>
  
  <p>When this button onClicked, I wanted to pass the value back to fragment A and display.</p>
  
  <pre><code>@Click(R.id.buttonAttach)
  void buttonAttachClicked(View v){
      System.out.println("TOTAL " + selectedRows.size());
      dismiss();
  }
  </code></pre>
  
  <p>I not sure how to do it. I was thinking of Bundle but Bundle is to pass parameter to a new activity. In this case, my fragment is already opened but I wanted to pass some values back.</p>
  
  <p>Any ideas? Thanks!</p>