title: create external file targeting android 12
body: <p>I assume the issue is related to the scoped storage changes introduced in android 11. However the online documentation did not make it clear for me how to approach this now. This is how it was done before:</p>
  <pre><code>try {
          File ext = Environment.getExternalStorageDirectory();
          File newDir = new File(ext + &quot;/&quot; + &quot;testFile&quot;);
          if (!newDir.exists()) {
              newDir.mkdir();
          }
      } catch (Exception ex) {
          ex.printStackTrace();
      }
  </code></pre>
  <p>Keep in mind that this app is already published in the store so tricking the manifest by requesting legacy access is not an option since it probably can't be pulished anymore then.
  What needs to be changed so I can achieve the same behaviour?</p>
  <p>Some background information: The app is creating playlists in that file so if the user switches his device he can copy the whole playlist onto the new device.</p>