I\'m trying to dynamically add and remove Fragments from a ViewPager, adding works without any problems, but removing doesn\'t work as expected.
Everytime I want to
You could just override the destroyItem method
destroyItem
@Override public void destroyItem(ViewGroup container, int position, Object object) { fragmentManager.beginTransaction().remove((Fragment) object).commitNowAllowingStateLoss(); }