On Thu, Aug 26, 2010 at 12:25 AM, Rainhut <[email protected]> wrote:

> That was a good find. I'm wondering if /mnt/sdcard will always be a
> valid path.
>

Please use the API to get the path.  It has changed once, it may change
again.  (Fwiw -- /sdcard is set up as a sym link to the current path; most
access through it should work correctly.  There may be something unusual in
the way you are accessing it that is causing the problem.)


>
> On Aug 21, 4:17 am, Will <[email protected]> wrote:
> > Thank you so much.
> > This is very useful.
> >
> > On Aug 1, 7:23 pm, jdeslip <[email protected]> wrote:
> >
> > > It turns out when I added a file on /sdcard, they were not added.
> > > When I add using the /mnt/sdcard path it worked fine. Both paths seem
> > > valid (I guess one is a symlink) but only the /mnt/sdcard adds the
> > > file to my library right away.  It appears you can get the right
> > > pathname using:
> >
> > > Environment.getExternalStorageDirectory()
> >
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to