Skip to content Skip to sidebar Skip to footer

Android: Out Of Memory Error When Using Bitmaps

i often get out of memory errors in my app. I believe it has to do with the bitmaps i download from the server. Any ideas why? **A method in my activity that sets up ListView:**

Solution 1:

If you have high resolution image , you should scale them down. See the topic under Load a Scaled Down Version into Memory. http://developer.android.com/training/displaying-bitmaps/load-bitmap.htmlOut of memory error on Android

On how to avoid them: How to avoid an out of memory error while using bitmaps in Android

For an oveview: http://blogs.innovationm.com/android-out-of-memory-error-causes-solution-and-best-practices/http://android-developers.blogspot.de/2009/01/avoiding-memory-leaks.html

Post a Comment for "Android: Out Of Memory Error When Using Bitmaps"