Alternative to VMRuntime.getRuntime (). SetMinimumHeapSize in Gingerbread

I know there VMRuntime.getRuntime (). setMinimumHeapSize in Android 2.1 / 2.2 for the developer to adjust the initial heap size of the application, and this is one of the most effective solutions to solve the OutOfMemory error during BitmapFactory.decodeStream ()

However, starting with Android 2.3, this VMRuntime class is removed from the official API, does anyone know an alternative API for this function in 2.3?

+5
source share
3 answers

and this is one of s most effective solutions to solve OutOfMemory error during BitmapFactory.decodeStream ()

? GC, , OutOfMemoryErrors.

, Android 2.3, VMRuntime API, - API 2.3?

. .

+6

Similar answer to increase application heap size

You cannot use VMRuntime post 2.2, but this functionality should solve your purpose

0
source

All Articles