I want to track the memory leaks of my application. But when I want to press the HPROF dump file button from DDMS, I get the error message: "hprof: cannot open /sdcard/com.google.android.apps.uploader.hprof-hptemp: Permission denied." Does anyone know how to fix this?
Many thanks,
Gratzi
Yes.
Connect to your emulator / device using ADB.
Then make the catalog accessible to the whole world using chmod 777
You can also add WRITE_EXTERNAL_STORAGE permission to the manifest file.
Read the instructions here: http://www.netmite.com/android/mydroid/2.0/dalvik/docs/heap-profiling.html
DKIT . , , , SD- USB. SD- , , hprof.
If you use an emulator, you also need to make sure that an SD card is configured on your virtual device. Just open the Android Virtual Device Manager, select your AVD and click "Change ...". Then just make sure you have the size set for your virtual SD card.