I would like to know the amount of heap space used by my android application in two ways: - programmatically - through DDMS.
I have referred to this post, prior to posting here. In that post, it is mentioned that, Debug.getNativeHeapSize()
returns the heapsize. Is this the exact method I should use, in order to programmatically detect the heap size? If so, where should I log it in order to get the correct heapsize usage of my application?