In relation to this topic Android: OutofMemoryError....
How Can you see the heap size on ddms (Eclipse)? I c开发者_如何转开发an only track allocations and it doesn't show nothing
You can try from code native heap allocation : Debug.getNativeHeapAllocatedSize()
this shows max heap memory of device
Runtime rt = Runtime.getRuntime();
long maxMemory = rt.maxMemory();
this is for heap required by your app
Runtime rt = Runtime.getRuntime();
long maxMemory = rt.maxMemory();
精彩评论