On Fri, Jun 1, 2012 at 7:02 AM, guich <[email protected]> wrote: > Is there an api to get the path to the external sdcard? I used the > ones described here: > http://developer.android.com/guide/topics/data/data-storage.html > , but they dont work.
Yes, they do. They give you the path to external storage, whatever the device manufacturer decided that external storage would be on a given device. That may or may not be an "external sdcard". Anything beyond what the device manufacturer declared as being external storage is beyond the Android SDK. > The path for the galaxy 2 7 is /sdExtCard. If that is not what Environment.getExternalStorageDirectory() returns, then there is nothing in the Android SDK that will return that path. Whether or not your application can use that path, what goes on at that path (e.g., card ejected), etc. is beyond the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- 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

