I have a small animation (AnimationDrawable
) that consists of 9 frames with resolution of 480x800.
When I was running that activity with the animation on my "old" SGS1 everything was fine. Now I got the S3 and the exact same code gave me an outofMemoryError
. That's not what I'd expect of a QuadCore/1GB RAM mobile phone. When I reduced the resolution of the animation, everything worked fine.
Did they really reduce the memory/heap?
Examine the /system/build.prop file and look for 'dalvik.vm.heapsize' - that supposedly is the value for memory heap size allowed for each application process
On my S3 running Android 4.1.2 the max heap size is 64MB (67108864 bytes).
You get this number by calling Runtime.getRuntime().maxMemory();
I've seen mention of 256MB but this is most likely only for apps that have specified android:largeHeap
in their manifest file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With