Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android manifest VM minimal heap size

Is there an option to declare the required minimal VM heap size for the OS/device in Android manifest, such that the Android Market would only display the application for devices meeting the requirement and filter out the rest.

I can detect the maximal VM heap size during the startup of the application, and fail if there is not enough available memory. However, this would be inconvenient for the users.

To be specific, I'm working on a hobby game with a friend, where graphics require at least 16MB but no more than 24MB of memory. The memory usage is more or less optimal in a sense that only required graphics are loaded in memory at any given state of the game.

like image 725
Timo Avatar asked Jan 31 '12 16:01

Timo


1 Answers

One way which you could use to ensure that your application uses maximum of available heap is by setting android:largeHeap=true in manifest file of your application. But this feature is available for operating systems 3.0 and above

like image 72
Er Sumit Sharma Avatar answered Sep 26 '22 04:09

Er Sumit Sharma