Sunday, 15 April 2012

Android Viewpager OutOfMemoryError Fragment -


Where each page is a piece with a different image set in the background as I need to make sure that the scroll For easy intervals, I have set the offscreenpage 20 (the number of items in the viewpages), but I am getting this error many times:

  java.lang OutOfMemoryError: Size of bitmap VM budget exceeds   

I already maximize images Compressed JPEGS), any ideas how can I solve this problem?

There is a good article in the training section of the Android Developers site ... ... it shows you How to use caching mechanisms in Android applications. You can adopt it in your ViewPager implementation.

No comments:

Post a Comment