Using too much memory in C/NDK?

Posted by rebeccamaher on Stack Overflow See other posts from Stack Overflow or by rebeccamaher
Published on 2011-02-02T03:29:51Z Indexed on 2011/02/02 15:25 UTC
Read the original article Hit count: 229

Filed under:
|
|
|
|

I've recently found out there is no hard limit to how much memory you can allocate in C/NDK on Android. This is in contrast to Java where the limit is ~24Mb. I'm working on a few apps that could greatly benefit from using about ~50Mb total. Is this far too much memory to use? Does anyone have any experience with developing apps that go above the Java limit and what impact this has across devices?

Obviously, I don't want to kill all background apps by consuming too much memory and I know the Android devs suggest not using too much memory but limiting all apps to ~24Mb is very limiting to certain kinds of apps. I've seen a few Android games recently that say they use ~256Mb.

I'm planning to use about 50Mb total for my app. Does this sound reasonable in terms of stability across devices that have a limit of 24Mb?

© Stack Overflow or respective owner

Related posts about java

Related posts about android