Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"OutOfMemory" Exception only on Samsung Galaxy S3

Samsung Galaxy S3 uses 32mb heapsize almost instantly on my app, where on almost any other android device it starts at +- 5mb (saw this in logcat, can send screenshots from two different devices if necessary). Think this is the reason for my app crashing with "OutOfMemory" Exception's on only the Galaxy s3, works perfectly on the galaxy Y Duos and Pocket.

Any Help/Advice on why this is happening would be greatly appreciated thanks.

like image 549
SpetsnaZ Avatar asked Nov 12 '22 23:11

SpetsnaZ


1 Answers

As told by mario, the problem is that s3 resolution is higher than those other models, so images are bigger in dimensions and, therefore, also in memory consumption.

Although it is worth to say that the S3 seems to have a little maximum heap size givin its resolution, since I have also had out of memory problems with it but not with other devices with same resolution that has a heap limit higher.

like image 190
Fran Marzoa Avatar answered Dec 24 '22 20:12

Fran Marzoa