how to create directory in mnt/sdcard in android 2.2
<pre><code> File dir = Environment.getExternalStorageDirectory();
        if (dir.exists() &amp;&amp; dir.isDirectory()) {
            String exStoragePath = Environment.getExternalStorageDirectory().getAbsolutePath();
            File appPath = new File(exStoragePath + "/mbrc/");
            appPath.mkdirs();
            String tempFilename = "tmp.wav";
            String tempDestFile = appPath.getAbsolutePath() + "/" + tempFilename;

            return tempDestFile;
        }
</code></pre>

<p>I try this on HTC with Android 2.2 but directory is not created and file also not. If i try this on SAMSUNG S2 wuth android 4 then works. </p>

<p>Why this not working on HTC and android 2.2?</p>
