How to create dir on interenal storage if external is unavailable
<p>I am creating a DIR from my app when app first time run.Here is the code for this</p>

<pre><code> if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){
        Log.d("MyApp", "No SDCARD");
} else {
    File directory = new File(Environment.getExternalStorageDirectory()+File.separator+"MyContactsBackUp");
    directory.mkdirs();
}
</code></pre>

<p>now what i want to know is that if external storage is missing then how can i create DIR on internal storage</p>
