title: Saving files in Android 11 to external storage(SDK 30)
body: <p>I am writing a new Application on Android 11 (SDK Version 30) and I simply cannot find an example on how to save a file to the external storage. <br> <br>
  I read their documentation and now know that they basicly ignore Manifest Permissions (<code>READ_EXTERNAL_STORAGE</code> and <code>WRITE_EXTERNAL_STORAGE</code>). They also ignore the <code>android:requestLegacyExternalStorage=&quot;true&quot;</code> in the manifest.xml application tag.</p>
  <p>In their documentation <a href="https://developer.android.com/about/versions/11/privacy/storage" rel="noreferrer">https://developer.android.com/about/versions/11/privacy/storage</a> they write you need to enable the <code>DEFAULT_SCOPED_STORAGE</code> and <code>FORCE_ENABLE_SCOPED_STORAGE</code> flags to enable scoped storage in your app.</p>
  <p>Where do I have to enable those?
  And when I've done that how  and when do I get the actual permission to write to the external storage? Can someone provide working code? <br> I want to save .gif, .png and .mp3 files. So I don't want to write to the gallery.</p>
  <p>Thanks in advance.</p>