title: Scoped Storage - Call Requires API Level 29 (current min is 19)
body: <pre><code>File folder;
  if (Environment.isExternalStorageLegacy()) { //error thrown here
      folder = new File(Environment.getExternalStorageDirectory()
                        + &quot;/bisym&quot;);
      if (!folder.exists()) {
          folder.mkdir();
      }
  } else {
     folder = getExternalFilesDir(null);
  }
  </code></pre>
  <p>I am trying to check if legacy or Scoped Storage is being used, but for some reason Android studio is complaining that <code>Environment.isExternalStorageLegacy()</code> requires API level 29.  I am targeting API 30, but my minimum is 19.  How would I get around this?</p>