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


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

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