I recently discovered that there is no hard limit on how much memory you can allocate in the C / NDK on Android. This contrasts with Java, where the limit is ~ 24 MB. I am working on several applications that can greatly benefit from using only about 50 MB. Is it too much memory to use? Does anyone have experience developing applications that exceed the Java limit and what effect does this have on devices?
Obviously, I don’t want to kill all background applications by consuming too much memory, and I know that Android developers suggest not using too much memory, but limiting all applications to ~ 24 MB greatly limits certain types of applications. I recently saw several Android games that say they use ~ 256 MB.
I plan to use about 50 MB for my application. Is this reasonable in terms of stability on all devices that have a 24 MB limit?
source
share