I\'m building an application using Pager with the compatibility library. My application forceClose whenever I try to pause it (when I come back to my desktop for instance).<
Instead you can follow the work around here that I have posted earlier for an issue related to NPE while using Tab + Fragment + ViewPager + FragmentStatePagerAdapter
I hope same solution will work for you
try out mu answer here basically override the onSaveInstanceState, put atleast one value in the bundle. Do for all fragments
I've stumbled upon the same problem while using ActionBarSherlock compatibility library. The workaround is that your adapter extends FragmentStatePagerAdapter
instead of FragmentPagerAdapter
.