title: Error accessing the SD card on Samsung Galaxy Note 3 KitKat (4.4.x)
body: <p>Since Samsung updated the Note 3 to 4.4.x, I am getting the following exception when writing to the SD card:</p>
  
  <pre><code>java.io.IOException: open failed: EACCES (Permission denied)
  at java.io.File.createNewFile(File.java:946)
  at java.io.File.createTempFile(File.java:1011)
  </code></pre>
  
  <p>My app has the necessary permission to write:</p>
  
  <pre><code>&lt;manifest ...&gt;
      &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19"/&gt;
  
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
       :  
      &lt;application ... &gt;
            :
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>The code that creates the crash looks like this:</p>
  
  <pre><code>tempFile = File.createTempFile("anMoney", null, destinationFile.getParentFile());
  </code></pre>
  
  <p><code>destionatioFile</code> points a file on the SD Card, so its parent file is the folder.</p>
  
  <p>The error seems to be happening on Note 3 devices ONLY and other Samsung or non-Samsung devices are working fine. So this smells like a Note 3 bug, but is there some workaround I could perhaps do?</p>