title: How to deal with requestLegacyExternalStorage and WRITE/READ permissions in the AndroidManifest.xml?
body: <p>I read the documentation and also searched for a potential solution. However, it's still not clear how to deal with. In my project, I used these permission lines in the app's <code>AndroidManifest.xml</code></p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; /&gt;
  &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;
  </code></pre>
  <p>to give corresponding accesses. Also, I handle those permissions in <code>onRequestPermissionsResult()</code> to ensure that the user allows them. However, recently I go this warinig</p>
  <pre><code>WRITE_EXTERNAL_STORAGE no longer provides write access when targeting Android 10, unless you use requestLegacyExternalStorage
  </code></pre>
  <p>My app supports Android versions 21+ and seemly Android 10 and above versions do not require above mentioned permissions.</p>
  <p>How can I deal with the <code>requestLegacyExternalStorage</code> and <code>android.permission.WRITE_EXTERNAL_STORAGE /&gt;</code>
  to keep functionable for all supported Android versions (21 and above)?</p>