The size of the VM heap cannot exceed 16mb, 24mb, 32mb depending on the phone. But what is the maximum size of the native heap? How much native memory can be allocated to th
There's no simple answer to this; you can use as much memory as the device has, minus what it's using for other programs. When Android thinks it's low on memory, it'll start killing background tasks, so it's a soft limit. Most devices do not have swap space. You can get some statistics about the device's memory from inside Dalvik with android.app.ActivityManager.MemoryInfo (I assume there's an NDK equivalent).