Media Permission for Android 13
<p>Android SDK 33 has several new behaviors to support your application. One of them is related to permissions. The permission request that is quite noticeable is to read the media.</p>
<p>In previous releases, <code>AndroidManifest.xml</code> states 2 permissions which are <code>READ_EXTERNAL_STORAGE</code> and <code>WRITE_EXTERNAL_STORAGE</code>.</p>
<pre>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /></pre>
<pre>
requestPermission(
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
onAllowed = {
//Your Allowed action
},
onDenied = {
//Your Denied action
}
)</pre>
<p>For Android SDK 33, you have to add other permissions to compliment <code>READ_EXTERNAL_STORAGE</code>. The new permissions differentiate the media-types that you want to use.</p>
<p><a href="https://medium.com/@fannyahdc/media-permission-for-android-13-sdk-33-258125fc55b9">Visit Now</a></p>