title: Is there a way for an Activity to know what fragment was just created?
body: <p>An <code>Activity</code> may inflate an arbitrary layout xml that may or may not have a <code>Fragment</code> placeholder in it. </p>
  
  <p>If it does , the <code>Fragment</code> will be instantiated and attached to the <code>Activity</code>.</p>
  
  <p>Is there any way to get a reference to the <code>Fragment</code> from the <code>Activity</code> that has been attached to it ?</p>
  
  <p><code>FragmentManger.findFragmentById()</code> 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 <code>Activity</code> is aware of any <code>Fragment</code>s attaching itself to it so that it may respond to it.</p>