rafidgotit / media_picker_widget

A widget that picks media files from storage and allows you to place anywhere in the widget tree.
MIT License
13 stars 14 forks source link

Android SDK 33 not working, how fix out? #9

Closed akashjpro closed 1 year ago

akashjpro commented 1 year ago

When I run device android SDK 33 but media picker widget not working. How fix out? Thanks!

rafidgotit commented 1 year ago

@akashjpro Storage Permissions in Android SDK 33 has been updated. You have to add the following permissions in your AndroidManifest.xml

READ_MEDIA_IMAGES READ_MEDIA_VIDEO

I should have updated the documentation. It will be in the next update InshaAllah. Hope this helps...

Example Code:

<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

Reference: https://developer.android.com/about/versions/13/behavior-changes-13