Sunday, September 5, 2010

[android-developers] Re: DDMS Heap Dump permissions problem

Your suggestion led me to discover the problem, which was that my
device was set so that whenever it was connected via USB, the SD card
would be mounted by my development computer. I changed the "Connect to
PC" setting to "charge only" and that fixed it. Thank you!

On Sep 3, 6:59 am, fadden <fad...@android.com> wrote:
> On Sep 1, 5:04 pm, mrmanuke <mrman...@gmail.com> wrote:
>
> > D/ddm-heap(19153):Heapdump: file='/sdcard/com.bunnies.Shhh.hprof'
> > E/dalvikvm(19153): hprof: can't open /sdcard/com.bunnies.Shhh.hprof-
> > hptemp: Perm
> > ission denied.
>
> > I've tried this on an actual device (HTC Desire w/ 2.1 Eclair) and an
> > emulator (Donut). Both gave exactly the same result as above. Also, I
> > do have the WRITE_EXTERNAL_STORAGE permission in the manifest. I've
> > searched and couldn't find anything about anyone ever having this
> > problem. Any ideas?
>
> Usually that comes up because of the WRITE_EXTERNAL_STORAGE issue.
> Does the file already exist but owned by someone else?  Can you verify
> that your app can create a file on /sdcard with that name using
> java.io calls?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment