Java Android-通过调试类从NativeHead获得的值错误?
我尝试使用以下方法从OnCreate方法中的调试类获取一些信息:Java Android-通过调试类从NativeHead获得的值错误?,java,android,memory,heap-memory,Java,Android,Memory,Heap Memory,我尝试使用以下方法从OnCreate方法中的调试类获取一些信息: getNativeHeapAllocatedSize() - Returns the amount of allocated memory in the native heap. getNativeHeapFreeSize() - Returns the amount of free memory in the native heap. getNativeHeapSize() - Returns the size of the n
getNativeHeapAllocatedSize() - Returns the amount of allocated memory in the native heap.
getNativeHeapFreeSize() - Returns the amount of free memory in the native heap.
getNativeHeapSize() - Returns the size of the native heap.
这就是我得到的:
HeapSize: 4.2mb
UsedHeapSize: 4.19mb
RemainingHeapSize: 0.05mb
但是怎么做呢?我的应用程序只有4.2MB的nHeap,并且使用了99%的nHeap?
仅仅在OnCreate方法中
有人能解释一下原因吗
在安卓2.3上测试
谢谢