Skip to content Skip to sidebar Skip to footer

Is There A Way To Impose A Memory Limit On An Android App For Testing?

I'm looking for something similar to the JVM heap memory limit option -Xmx. Is there a simple way to do this on Android?

Solution 1:

If you're using an emulator, you can specify the VM Heap parameter when creating the AVD. That's the memory that standard apps will have available.

enter image description here

If it's a real device, however, I don't think this parameter can be changed (at least on a non-rooted one).

Post a Comment for "Is There A Way To Impose A Memory Limit On An Android App For Testing?"