Hi I am developing an android magazine application.
It has many pictures. In application I show each picture in full screen and the user can swipe between pictures.
I used ViewPager
with FragmentStatePagerAdapter
. Every thing works fine. When I rotate the device first time it also works fine.
But if I try it several times it give an error. The error is outofmemoryerror
.
The adapter for viewpager in horizontal
and in portrait
is different.
Anybody help what can I do?