What is the best way to receive back (to Fragment) data from DialogFragment
<p>I'm fighting couple of days with a such simple think like receiving back a data from a <code>DialogFragment</code>. First I tried to make a <code>DialogFragment</code> as a nested class, but it happened it fails on orientation change. Then I decided to user <code>interfaces</code> passing a <code>listener</code> to a <code>DialogFragment</code>, but here is a problem on how to persist the <code>listener</code> after <code>orientation change</code>. Then someone from here suggested to use <code>setTargetFragment()</code>, but it is also doesn't work because of a <a href="http://code.google.com/p/android/issues/detail?id=17423#c1" rel="nofollow">known issue</a>. </p>

<p>It is such a common task, how you guys get data back from <code>DialogFragment</code>s. </p>
