title: How to create a sub directory inside a private directory in android
body: <p>I have created a directory like this: </p>
  
  <pre><code>File mydir = context.getDir("my_private_dir", Context.MODE_PRIVATE);
  </code></pre>
  
  <p>Now I want to create another directory inside <code>my_private_dir</code>for which I've tried doing it this way: </p>
  
  <pre><code> File file = new File(mydir.getAbsolutePath()+ File.separator + date);
              if (file.mkdir())
                  Log.d(context.getClass().getSimpleName()," date dir created");
  </code></pre>
  
  <p>I don't know why this is not working out. The subdirectory is not getting created at all.</p>
  
  <p>I want all the directories to be private and only my app should be able to access it. SO I thought to make the parent directory private and to create subdirectories inside it normally will be enough. But I'm not able to understand why the subdirectory is not getting created.</p>
  
  <p>Can anyone please help me with this problem?</p>
  
  <p>Thanks in advance :)</p>
  
  <p>Regards</p>