[mono-android] detect SD Card path?

Jonathan Pryor jonp at xamarin.com
Thu Jun 7 15:59:09 UTC 2012


On Jun 7, 2012, at 11:36 AM, moelski wrote:
> Environment.ExternalStorageDirectory
>> /mnt/sdcard
> Environment.GetExternalStoragePublicDirectory(Environment.DirectoryMusic)
>> /mnt/sdcard/Music
> Environment.ExternalStorageState
>> mounted
> Environment.DataDirectory
>> /data
> 
> My device is a galaxy S2 with Android 4.0.3. 
> If I use adb shell I find my "real" sd card here: 

Try this:

	adb shell ls -l /mnt/sdcard

Specifically, does /mnt/sdcard/Music exist? The /mnt/sdcard/external_sd directory may be a red herring, and ignorable.

What's the output of:

	adb shell mount

Thanks,
 - Jon



More information about the Monodroid mailing list