Search code examples
androidandroid-largeheap

What are the downsides of using android:largeHeap="true"?


Recently I've reduced the max memory peak of my application from 100 MB to 45 MB and I'm curious what are the downsides of using the android:largeHeap="true" other than the potential to push other applications out of memory? If the size doesn't grow enough to justify pushing other apps out wouldn't it be a nice failsafe, for instance, if your app was only going to be used for four days at a convention where a crash would be potentially catastrophic? Or is there some other con that I'm looking past?


Solution

  • From my understanding, all it will really do is allow your application a higher memory limit - the largeHeap size differs between devices though, so you're not guaranteed a particular amount of extra memory. We use it at my job for one of our applications since it will be the only application running on the device.