title: How to get button clicks in host fragment from dialog fragment
body: <p>I have a listFragment, where I want to display a DialogFragment (Yes/No) on listItemClick. I want to get back the user selection(Yes/No) in listFragment. I have read about the listener interface mechanism but that work with activity&lt;->fragment. One way of doing this can be:</p>
  
  <ol>
  <li>Define interface in dialog fragment containing yes/no button selection functions, and call these methods on alert dialog positive/negative button clicks.</li>
  <li>Implement this interface in Main activity.</li>
  <li>Initiate dialogFragment in listFragment onItem click.</li>
  <li>Save user selection in activity.</li>
  <li>get this choice in listFragment by another interface, implemented in Main activity.</li>
  </ol>
  
  <p>But do we have any simple mechanism for this simple task? any example or code?</p>