Unable to write files on sdcard android
<p>I have an app they save backup files on sdcard, it work fine on HTC Nexus One, and other android phone but with some phone it doesn't work (reading or writing)</p>

<p>In the manifest I have set this:</p>

<pre><code> &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;  
</code></pre>

<p>For example (when I set the path for recording file)</p>

<pre><code>OutputStream output = new FileOutputStream(Environment.getExternalStorageDirectory()
                    + "/mydata.dat");
//Writing file...(It doesn't work)
</code></pre>

<p>How I can get the right path of the sdcard for manipuling files rightly?</p>

<p>Thanks...</p>
