Writing Access denied to removable SD Card
<p>I'm having a problem with writing to my external sd card. I'm getting a <code>UnauthorizedAccessException</code> whenever I try to write to it. I've already checked <code>WriteExternalStorage</code> in the Android Manifest.<br>
Because <code>GetExternalStoragePublicDirectory</code>, <code>ExternalStorageDirectory</code> etc. are all returning the path to the internal storage, I'm using a manual path, <code>/storage/6363-3065/</code>. If I'm writing to my internal storage, the program runs without error, but it throws an Exception when writing to the sd card.<br>
Can I do anything to solve this? I mean, it can't be impossible, because other programs like my file manager can do it without root or anything...</p>

<p>Edit:</p>

<p>I'm using a LG G4 with Android 6.0. Code is simple:</p>

<pre><code>string filepath = "/storage/6363-3065/Temp/tempfile.temp";
Directory.CreateDirectory(Path.GetDirectoryName(filepath));
</code></pre>