On Fri, May 11, 2012 at 5:30 PM, Ken Plumley <[email protected]> wrote: > So the code below will work for both the sd card and the device built-in > external storage?
There is only one thing designated "external storage" per device. What 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 [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

