If you call android.os.Debug.dumpHprofData (String fileName), you can grab an HPROF dump, which can be viewed using jhat or MAT. You need to somehow catch the exception (either try / catch, or specify your own global default exception handler), and if you want to write to / sdcard, you need permission WRITE_EXTERNAL_STORAGE.
. Dalvik Heap.