Look at your 'Adapter' that implements
'FragmentPagerAdapter' and that something will contain a collection type field like an ArrayList that backs the adapter.
Depending on the implementation of the dataStructure, you can alter the underlying collection by calling the corresponding add, set, insert methods on the fragmentpageradapter.
Then your next call to get a new page in the ViewPager should reflect the change to the underlying collection. If it doesn't you may have to call a 'commit' on the FragmentManager, but i do not think thats needed in this instance.
public class BookPagerAdapter extends FragmentPagerAdapter {
private int currentPage = 0;
private ArrayList mFragments;
public BookPagerAdapter(FragmentManager fm) {
super(fm);
mFragments = new ArrayList<Fragment>();
mFragments.add(new PageFragment(BitmapFactory.decodeResource(getResources(),
R.drawable.icon_construction32), "TitlePage"));
}
example of changing the collection:
bpa.mFragments.add(new PageFragment(map));