Roles/responsibilities of FragmentActivities vs. Fragments
<p>Say I have an application with two instances of FragmentActivity, FragActivityA and FragActivityB, and two ListFragments, FragA and FragB.</p>

<p>In portrait, FragActivityA presents FragA, and upon selection starts FragActivityB presenting FragB.</p>

<p>Should FragA implement OnItemClickListener for the ListView (some networking business is performed on press), or FragActivityA? Should FragA show a DialogFragment, or should there be a callback to FragActivityA to show it?</p>

<p>When in landscape, FragActivityA presents both FragA and FragB. Now, if the answers to the above are yes, FragActivityA needs to include most methods of FragActivityB, duplicating most of the code. If the answers are no, then FragA or FragB need to present and handle DialogFragments themselves.</p>

<p>I'm looking for a little guidance on where I should be writing most of my code (my gut feeling is inside the Fragments), but Fragments displaying DialogFragments seems strange to me.</p>
