I\'m using a ViewPager
together with a FragmentStatePagerAdapter
to host three different fragments:
In Fragment
public int getArgument(){
return mPage;
{
public void update(){
}
In FragmentActivity
List fragments = getSupportFragmentManager().getFragments();
for(Fragment f:fragments){
if((f instanceof PageFragment)&&(!f.isDetached())){
PageFragment pf = (PageFragment)f;
if(pf.getArgument()==pager.getCurrentItem())pf.update();
}
}