Is there a way for an Activity to know what fragment was just created?
<p>An activity may inflate an arbitrary layout xml that may or may not have a fragment placeholder in it. </p>

<p>If it does have a &lt; fragment > tag in it, that fragment will be instantiated and attached to the activity.</p>

<p>Is there any way for the activity to have a reference to any fragments who have attached that activity to itself?</p>

<p>FragmentManger.findFragmentById():Fragment assumes you know the ID in advance to make it work but in this situation I am proposing, it is not available.</p>

<p>The behavior I'd ideally like to have is that the Activity is aware of any Fragments attaching itself to it so that it may respond to it.</p>
