I want to track the memory leaks of my application. But when I want to press the dump HPROF file button from the DDMS, I get an error message saying that: "hprof: can't open /sdcard/com.google.android.apps.uploader.hprof-hptemp: Permission denied." How can I fix this?
Yes.
Connect to your emulator/device using ADB.
Then make the catalog world writable, using chmod 777
You can also add the permission WRITE_EXTERNAL_STORAGE to your manifest file.
Read the instructions here: http://www.netmite.com/android/mydroid/2.0/dalvik/docs/heap-profiling.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With