title: Open failed: ENOENT (No such file or directory) even with permissions
body: <p>I know there are many other posts with this issue, but none seem to solve mine. I am trying to create a file on <code>Enviroment.DIRECTORY_DOWNLOADS</code>, email that file, and then delete it. However, I am getting an error when I initialize the file output stream <code>fos = new FileOutputStream(file);</code>. </p>
  
  <p>The error I get is: </p>
  
  <p><code>java.io.FileNotFoundException: /CheckListReport_2015_07_19.txt: open failed: ENOENT (No such file or directory)</code></p>
  
  <p>In my manifest I have <code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;</code> outside of the applications tag</p>
  
  <p>Below is the code:</p>
  
  <pre><code>    String report = new SimpleDateFormat("yyyy_MM_dd").format(Calendar.getInstance().getTime());
      File path = Environment.getExternalStoragePublicDirectory(
              Environment.DIRECTORY_DOWNLOADS);
  
      File file = new File(path, "CheckListReport_" + report + ".txt");
  
      FileOutputStream fos = null;
  
      try {
          fos = new FileOutputStream(file);
  
          String lineToWrite;
          for (Map.Entry entry : CheckboxHandler.data.entrySet()) {
              lineToWrite = entry.getKey() + ", " + entry.getValue() + "\n";
              fos.write(lineToWrite.getBytes());
          }
      } catch (IOException e) {
          e.printStackTrace();
      }
  
      String subject = "CheckListReport_" + report + ".txt";
  
      Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
      emailIntent.setType("text/plain");
      emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"checklistreportdata@gmail.com"});
      emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
      emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(new File(path, "CheckListReport_" + report + ".txt").toString()));
      startActivity(Intent.createChooser(emailIntent, "Send mail..."));
  
      file.delete();
  </code></pre>