I have this problem, I have a FragmentActivity with a ViewPager and a ViewPagerAdapter.
In this ViewPager I have 3 Fragm
for those who still face the same problem which I faced the same problem when I have ViewPager with seven fragment. the default for these fragments to load the English content from the service but the problem here that I want to change the language from settings activity and after finish settings activity I want ViewPager in main activity to refresh the fragment to match the language selection from the user and load the Arabic content if user choose Arabic here what I did to work from the first trr :D
1. you must use FragmentStatePagerAdapter .*
mainActivity I overrided the onResume and did the following
if (!(mPagerAdapter == null)) {
mPagerAdapter.notifyDataSetChanged();
}
I ovveride the getItemPosition() in mPagerAdapter and make it return POSITION_NONE.
@Override
public int getItemPosition(Object object) {
return POSITION_NONE;
}
works like charm