Reputation: 5160
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?
Upvotes: 5
Views: 5303
Reputation: 1523
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.
Upvotes: 4
Reputation: 89
its 256mb on stock s3 . you should be handling bitmaps on native heap instead using .InPurgeable option
Upvotes: -1
Reputation: 384
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
Upvotes: 6