[Solved] Determine why my android app crashes upon opening [duplicate]

[ad_1]

first of all change this line of code:

mPagerAdapter = new ScreenSlidePager.ScreenSlidePagerAdapter(getSupportFragmentManager());

to this:

mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());

it seems you copied your adapter from another page

change place you are defining your pager:

private ViewPager mPager;

above the onCreate

8

[ad_2]

solved Determine why my android app crashes upon opening [duplicate]