I have an Android application running as a privileged system application (apk in /system/priv-app) on an embedded Android device that runs KitKat. The embedded system has 1GB of memory and the application itself looks like it is given around 140MB of heap memory. I'm running into performance issues where GC_FOR_ALLOC is being called constantly as I'm trying to allocate new bitmap images in a RecyclerView (images are loaded with Picasso). This causes a noticeable stutter as you scroll. The device itself (cat /proc/meminfo
) has about 350MB of free memory.
Since I have access to the framework code that runs on this device, I'm wondering if there is any way to increase the default amount of memory that is available in the heap? When I run adb shell dumpsys meminfo
the application never seems to want to take any more memory.
edit
To those wondering I already have largeHeap=true
in the Android manifest and it does not help this situation.