what shoud be difference between "NativeHeapAllocatedSize" and "Runtime totalMemory" in Android to prevent from "OutOfmemory Exception"?
<p>hello i m doing some runtime calculation for getting NativeHeap memory and allocated memory at runtime, so any one can suggest me</p>

<p>what should be the difference between "Debug.getNativeHeapAllocatedSize()" and "Runtime.getRuntime().totalMemory()"</p>

<p>so can prevent app by OutOf Memory Exception.</p>

<p>Thanks</p>
