title: Create a folder and write into it in the root of android
body: <p>I'm not trying to write into the external sd at /mnt/sdcard. I'm trying to create a folder for may app files and have them accesible by others. </p>
  
  <p>I have an app called Libra that generates .csv files when exporting data and all af it goes to /Libra/ folder. I want my app to do the same.</p>
  
  <p>As far as I've seen there's external storage which is the sd and internal which is a non public place for the app. </p>
  
  <p>How can I make a dir at the root of the android file system as Libra does ?</p>
  
  <p>If I ask for the external storage I get the following non desired locations :</p>
  
  <pre><code>Environment.getExternalStorageDirectory()
  </code></pre>
  
  <blockquote>
  <pre><code>/storage/emulated/0/ (in my Nexus)
  /mnt/sdcard          (in the emulator)
  </code></pre>
  </blockquote>
  
  <p>If I try to make the folder in an absolute path /MyDiary It returns Error creating folder</p>
  
  <pre><code>File folder = new File("/MyDiary");
  boolean success = true;
  if (!folder.exists()) {
          success = folder.mkdir();
  }
  if (success) {
          Toast.makeText(getBaseContext(), "Already exists", Toast.LENGTH_LONG).show();
  } else {
          Toast.makeText(getBaseContext(), "Error creating directory", Toast.LENGTH_LONG).show();
          return;
  }
  </code></pre>
  
  <p>If I try to check if the Libra folder does exists, it says it doesn't exist:</p>
  
  <pre><code>File folder = new File("/Libra");
  boolean success = true;
  if (!folder.exists()) {
          success = folder.mkdir();
  }
  if (success) {
          Toast.makeText(getBaseContext(), "Libra exists", Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>Note: I've got the manifest permissions to write in external storage.</p>