Saturday, September 11, 2010

[android-developers] Re: mkdir() fails when min sdk version is 4

Thanks Dianne.

That was it. It worked as soon as I changed
<uses-permission-group android:name="android.permission-
group.STORAGE" />
to
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

I had neither in the old code. Probably a tightening of specs in
2.1. I do wonder what the permission group does. I thought that I
saw that in some old post and used it. Seems like the correct one
since I assumed it would allow me to read/write/rename/delete files on
the external storage.

Another related question is that the Vibrant has 16 GB as "internal"
storage. But that's where the /sdcard directory is. There is also
another replaceable 2GB MicroSD slot. If I want to write to that
drive, how do I access it and does Android consider that as external
storage as well?

On Sep 12, 3:36 am, Dianne Hackborn <hack...@android.com> wrote:
> On Sat, Sep 11, 2010 at 3:19 PM, milind <mili...@gmail.com> wrote:
> > \   <uses-permission-group android:name="android.permission-
> > group.STORAGE" />
>
> This should be <uses-permission>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate