Is there a way to determine whether a specified dir is in removable sdcard?
<p>On some phones, there are two external storage directories. For example, on some phones, there are <code>/sdcard(internal storage)</code> and <code>/sdcard/external_sd</code> (removable stick or others). These two directores may differ on different phones, for example, there may be <code>/sdcard</code> and <code>/sdcard/_External_SD</code>.</p>

<p>My question is, for a given directory, is there any way to determine where it is mounted? i.e., how to find whether this dir is mounted on <code>/sdcard</code> or <code>/sdcard/external_sd</code>. regex shouldn't work well as the directories names are different on different phones. Using this code:</p>

<pre><code>Environment.getExternalStorageDirectory()
</code></pre>

<p>Just returns the "primary" external storage directory, so it doesn't seem to help either.</p>
