Checking if File Exisits using /mnt/sdcard
<p>I have like many people used Environment.getExternalStorageDirectory().toString() to work out where the SDCard is located on the phone. I have through bought a Galaxy S3 and hit a issue with this phone.</p>

<p>The Environment.getExternalStorageDirectory().toString() does not go to the correct place. (See this <a href="http://stackoverflow.com/questions/11281010/how-can-i-get-external-sd-card-path-for-android-4-0">How can I get external SD card path for Android 4.0+?</a>) for more info.</p>

<p>I have used the method (hashset one) to work out the path to the external sdcard but when I use it, it does not work</p>

<pre><code>HashSet&lt;String&gt; testing = getExternalMounts();

Iterator it = testing.iterator();

while(it.hasNext())
        {

            String value = (String)it.next();
            File file = new File(value, DB_EXPORTED_NAME);

            if(file.exists()){
                Toast.makeText(context, "File exists", Toast.LENGTH_SHORT).show();
            } else {
                Toast.makeText(context, "Not Found", Toast.LENGTH_SHORT).show(); 
            }
}
</code></pre>

<p>It always comes up as Not Found. Can someone let me know where I am going wrong</p>

<p>thanks for your time</p>
