On Fri, Feb 25, 2011 at 6:41 AM, Dmitry Golubovsky <[email protected]> wrote: > In my program, I need to access the full contents of the sdcard for > reading and writing. > > I have found that the sdcard is itself mounted at /system/media/sdcard > (on Pandigital Novel 9" tablet, Android 2.0). Is there any library > function that would return this path correctly for any other Android > version? I tried Environment.getExternalStorageDirectory, but it only > returns /sdcard, and through that path I cannot see any files in the > root of the sdcard, only directories like Music, Images, etc.
>From an Android SDK standpoint, getExternalStorageDirectory() is the right answer. If a device manufacturer elects to do something else, that is their problem. Furthermore, that device does not support third-party apps, let alone have the Android Market on it. I recommend that you get a real device, one that ships with a legitimate Android Market on it, for your app testing purposes. -- 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 [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

