WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.Next create an instance of `FilePickerDialog`, and pass `Context` and `DialogProperties` references as parameters. Optional:You can change the title of dialog. Default is current directory name. Set the positive button string. Default is Select. Set the negative button string. Defalut is Cancel.
@@ -125,6 +125,22 @@ Marshmallow and above requests for the permission on runtime. You should overrid
125
125
}
126
126
```
127
127
128
+
### Android13 and Above Instructions:
129
+
If your app targets Android 13 or higher and needs to access media files that other apps have created, you must request one or more of the following granular media permissions instead of the ```READ_EXTERNAL_STORAGE permission```:
130
+
As of Android 13 and above you can only browse and select Images,Videos and Audio files only. This library is still in development and I'm looking for contributors to make this library more better
131
+
```
132
+
Type of media | Permission to request
133
+
134
+
Images and photos | READ_MEDIA_IMAGES
135
+
Videos | READ_MEDIA_VIDEO
136
+
Audio files | READ_MEDIA_AUDIO
137
+
```
138
+
Before you access another app's media files, verify that the user has granted the appropriate granular media permissions to your app.
139
+
140
+
If you request both the ```READ_MEDIA_IMAGES``` permission and the ```READ_MEDIA_VIDEO``` permission at the same time, only one system permission dialog appears.
141
+
142
+
If your app was previously granted the ```READ_EXTERNAL_STORAGE``` permission, then any requested ```READ_MEDIA_*``` permissions are granted automatically when upgrading.
0 commit comments