Android manifest VM minimum heap size

Is it possible to declare the required minimum virtual machine heap size for the OS / device in the Android manifest, so that the Android Market displays the application only for devices that satisfy this requirement and filters out the rest.

I can determine the maximum VM heap size during application startup and crash if there is not enough available memory. However, this will be inconvenient for users.

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

+7
source share
1 answer

One way you could use to get your application to use the maximum available heap is to set android: largeHeap = true in your application's manifest file. But this feature is available for operating systems 3.0 and higher.

+3
source

All Articles