how to add page dynamically in FragmentStatePagerAdapter
I know this question asked many time but I don't get answered after many research. in my main activity I have a view pager and I set an adapter for that: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ViewPager mPager; PagerAdapter mPagerAdapter; mPager = (ViewPager) findViewById(R.id.pager); mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager()); mPager.setAdapter(mPagerAdapter); @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { String tag = "onActivityResult";