What is Samsung Galaxy S3 size?

I have a small animation ( AnimationDrawable) consisting of 9 frames with a resolution of 480x800.

When I ran this activity with animation on my "old" SGS1, everything was fine. Now I got S3, and the same code gave me outofMemoryError. This is not what I expect from a QuadCore / 1GB RAM mobile phone. When I reduced the resolution of the animation, everything worked fine.

Do they really reduce memory / heap?

+5
source share
3 answers

Examine the /system/build.prop file and find "dalvik.vm.heapsize" - this is supposedly the value of the heap size allowed for each application process

+6
source

S3 Android 4.1.2 64 (67108864 ).

, Runtime.getRuntime().maxMemory();

256 , , android:largeHeap .

+2

its 256mb in stock s3. you must process bitmaps on the native heap, use the .InPurgeable parameter instead

-1
source

All Articles