Out Of Memory Error In Galaxy S3 4.0.4
Solution 1:
If you are using only drawable folder for ui. you must be change your rule. Use drawable-xhdpi, drawable-hdpi drawable-mdpi bla bla bla. Samsung galaxy s3 using drawable-xhdpi folder. if your are using only drawable folder for images you will be get frag case memory warning and application give you error out of memory. use memory management tool, change your approach to create user interface on android. different screen size different drawable folder key subject
Solution 2:
Garbage collector improvement doesn't mean you can now load tonns of bitmaps, cause memory is still limited. I'd recommend you to learn this post carefully and follow those practices, then you'll be protected against OOM on any platform. Hope this helps.
Solution 3:
If you are dealing with lots of images, better use lazy images loading. Here is a sample of images lazyloading in GridView.
Post a Comment for "Out Of Memory Error In Galaxy S3 4.0.4"