How to create directory automatically on SD card
<p>I'm trying to save my file to the following location<br>
<code>FileOutputStream fos = new FileOutputStream("/sdcard/Wallpaper/"+fileName);</code>
but I'm getting hte exception <code>java.io.FileNotFoundException</code><br>
However, when I put the path as <code>"/sdcard/"</code> it works.</p>

<p>Now I'm assuming that I'm not able to create directory automatically this way.</p>

<p>Can someone suggest how to create a <code>directory and sub-directory</code> via code?</p>
