I\'m using a ViewPager together with a FragmentStatePagerAdapter to host three different fragments:
ViewPager
FragmentStatePagerAdapter
In order to get current Visible fragment from ViewPager. I am using this simple statement and it's working fine.
public Fragment getFragmentFromViewpager() { return ((Fragment) (mAdapter.instantiateItem(mViewPager, mViewPager.getCurrentItem()))); }