title: Android: Callback to fragment from DialogFragment?
body: <p>I know to pass back something from a fragment to its calling activity you can use onAttach which has the "activity" parameter. You can set the activity to variable and call an interface on it later. So passing data from the fragment back to the activity. All great.</p>
  
  <p>I would like to do the same thing  but this time i have a standard fragment and I want to call a <code>DialogFragment</code> and then have the <code>DialogFragment</code> call back to the original fragment but I can't use <code>onAttach</code> is wants a <code>Activity</code>.</p>
  
  <p>Anyone know the best way of doing this ?</p>
  
  <p>Thanks</p>