writing file on sdcard privately for application anddroid
<p>i am writing audio data as in amr file format in sdcard.</p>

<pre><code>    File file = new File(dir, "test.amr");
    try {
        FileOutputStream f = new FileOutputStream(file);
        f.write(audioData);
        f.close();
    } catch (FileNotFoundException e) {
        e.printStackTrace();
    } catch (IOException ex) {
        ex.printStackTrace();
    }
</code></pre>

<p>Its working properly but my problem is it shows in other applications as well like in default media player of android os.</p>

<p>My question is how can write a file on sdcard which is only accessible to my application.Not to other applications on device.</p>

<p>Thanks</p>
