Skip to main content
Kofax

Out of Memory error on older Android devices

Article # 3035900 - Page views: 19

Issue

I am running an Android app that implements the Kofax Mobile SDK. When I take a picture on an older device, such as a Samsung S3, an out of memory error occurs.

Cause

Applications running on API Level 11+ can have android:largeHeap="true" in the <application> element in the manifest to request a larger-than-normal heap size, and getLargeMemoryClass() on ActivityManager will tell you how big that heap is.

Solution

In the Kofax Mobile Demo sample app, there is an example of how to set this parameter in the AndroidManifest.xml file.

In the application section, note the setting:

android:largeHeap="true"

 

Level of Complexity 

Moderate

 

Applies to  

Product Version Build Environment Hardware
Kofax Mobile SDK all      

References

 

  • Was this article helpful?