Re: [android-developers] How To Access Device Internal Storage?
Mark,
How does the user access the sd card and the internal device built-in external storage in a device like this Motorola TRIUMPH? It has sd card and internal ( built-in external storage).
Motorola TRIUMPH specifications
- Internal Memory: 2GB
- Expandable Memory: 32GB
- RAM: 512MB
On Fri, May 11, 2012 at 2:38 PM, Mark Murphy <mmurphy@commonsware.com> wrote:
On Fri, May 11, 2012 at 5:30 PM, Ken Plumley wrote:There is only one thing designated "external storage" per device. What
> So the code below will work for both the sd card and the device built-in
> external storage?
it is (SD card, on-board flash, 3.5" floppy disk, wafer tape/stringy
floppy/micro drive, lots and lots of tiny punch cards, whatever) is up
to the manufacturer. From the SDK's standpoint, "the sd card and the
device built-in external storage" are the same thing, for devices that
use the SD card as external storage. For devices that do not, from the
SDK's standpoint "the sd card" does not exist.
:: insert obligatory thread from others ranting about how Google is
teh evil for not supporting N forms of external storage ::
However, getExternalStoragePublicDirectory() does not take an
arbitrary string as a parameter. It should be one of the documented
DIRECTORY_ constants on Environment.
If you are seeking a directory unique for your own app on external
storage, use getExternalFilesDir() (available on all subclasses of
Context, such as Activity) instead of
getExternalStoragePublicDirectory().
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in DC: http://marakana.com/training/android/
--
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
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