Hello all,

I ran into a seemingly simple issue to which I cannot find an answer.
The application I am working on needs to read/write data from/to the
SD card. All the resourcess are located in a folder rigth on the root
of the sd card. To obtain the absolute path to my resources directory,
I wrote something like this:

static final String RES_PATH =
Environment.getExternalStorageDirectory() + File.separator +
"<res_dir_name>";

which results into something like:

"/sdcard/<res_dir_name>"

This works just fine for most devices. However, there is the Samsung
Galaxy S which has 2 SD cards, one internal, and one external. Using
the code above, I get the path to the internal SD card. The path to
the external card is "/sdcard/sd/" (where I belive "sd" is just the
mount point).

Is there any API that I don't find which returns a list of paths to
multiple SD cards (if available). Or is there any other way to scan
both cards for the existence of my resources folder without hardcoding
it myself. Note that changing the location of the resources dir is not
an option.

Thank you all advance ! Cheers!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to