how to create application folder in android
<p>I am creating application folder on first activity on onCreate() Method but folder is not creating.here is the code</p>

<pre><code> if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){
        File fil = new File(this.getFilesDir().getPath()+File.separator+"MyContactsBackUp");
        fil.mkdirs();

} else {
    File directory = new File(Environment.getExternalStorageDirectory()+File.separator+"MyContactsBackUp");
    directory.mkdirs();
}
</code></pre>
