I am using NDK for my application. and for my testing device, when I take more than the 16 MB limit (HTC magic, android 2.2), the application crashes and the system throws exceptions for access to invalid addresses. So no, you cannot use all the memory you want, neither from the native side, nor from the java-managed side.
I read about using different .so libraries and loading them when the application started, but I donโt know how it works, or if it is a viable workaround. Any suggestions?
source share