Problem in creating Temporary File in android?
<p>In my MediaPlayer application for streaming Video i am using the following code</p>

<pre><code>File temp = File.createTempFile("mediaplayertmp", "dat");
</code></pre>

<p>while running it throws exceptions like</p>

<pre><code>Parent directory of file in not 
writable:/sdcard/
mediaplayertmp43912.dat
</code></pre>

<p>I dont how to handle this problem,and i want to know that when we execute that code means where the file will be created.any one knows the solution means please help with some code.</p>
