title: How do you get the current fragment's ID?
body: <p>I've created a ViewPager with 8 fragments that use the same xml layout.
  However, I want different fragments to use different content.
  I need to get the ID of whatever fragment it is so I can load specific content onto that fragment.</p>
  
  <p>I've tried</p>
  
  <pre><code>extras.putInt(Globals.KEY_CATEGORY_POSITION, position);
  fragment.setArguments(extras);
  </code></pre>
  
  <p>in the getItem(int position) method on the FragmentPagerAdapter.</p>
  
  <p>Then, I get the position of the fragment in the Fragment class. When I do this, I go from 0 to 7 when I print out the position of each fragment but then all of them increment to 7 so they all become the same fragment.</p>
  
  <p>Is there any other way to get the ID for each fragment?</p>