On Mon, Apr 30, 2012 at 6:03 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
On Mon, Apr 30, 2012 at 8:26 AM, RLScott <fixthatpiano@yahoo.com> wrote:It points to whatever the device manufacturer chose to point it to. On
> It has been my experience that
> Environment.getExternalStorageDirectory() which you mentioned
> generally points to the built-in kind of external memory.
some devices, it is removable; on some devices, it is not.
Or not using it.
> So if you
> want to access the real removable SD card file system there is no way
> I know of other than hard-wiring the actual path name, or letting the
> user enter it on a form (assuming the user even knows what the path
> name is).
Or waiting for the Android SDK to support multiple "external" mount points.
Or waiting for somebody to crowdsource a database of available
standard mount points and their accessibility (just because /mnt/foo
exists does not mean you can read or write to it, or that the user can
access it), and waiting for somebody to create some sort of JAR that
leverages this crowdsourced database, so you can determine the
available options for your hardware to present to the user.
You will note that neither of these is /sdcard, which was my point to the OP.
> For example, on the Acer Iconia Tablet A-100 there is
>
> /mnt/sdcard (built-in "external" memory")
> /mnt/external_sd (removable SD card)
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training...At Your Office: http://commonsware.com/training
--
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
Give the example how to reading a file from SD Card
--
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