Mehrzad238 Active Member Feb 11, 2025 #1 Starting from Android 10 (API 29) and Android 14 (API 34), there are changes in how storage and media permissions work. Android 14 (API 34) ChangesGoogle introduced scoped storage and separate media permissions, meaning: READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE are no longer used for general file access. Instead, Android 13+ uses separate permissions for photos, videos, and audio. B4X: ' Request Photo & Video Permissions (Android 13+) rp.CheckAndRequest(rp.PERMISSION_READ_MEDIA_IMAGES) rp.CheckAndRequest(rp.PERMISSION_READ_MEDIA_VIDEO) ' Request Audio File Access (Android 13+) rp.CheckAndRequest(rp.PERMISSION_READ_MEDIA_AUDIO) @Erel will you do something about this?
Starting from Android 10 (API 29) and Android 14 (API 34), there are changes in how storage and media permissions work. Android 14 (API 34) ChangesGoogle introduced scoped storage and separate media permissions, meaning: READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE are no longer used for general file access. Instead, Android 13+ uses separate permissions for photos, videos, and audio. B4X: ' Request Photo & Video Permissions (Android 13+) rp.CheckAndRequest(rp.PERMISSION_READ_MEDIA_IMAGES) rp.CheckAndRequest(rp.PERMISSION_READ_MEDIA_VIDEO) ' Request Audio File Access (Android 13+) rp.CheckAndRequest(rp.PERMISSION_READ_MEDIA_AUDIO) @Erel will you do something about this?
Solution Erel Feb 13, 2025 No offense taken. If you have a question then post the question. No need to ask me what I will do about it. What is the question? You can request any permission you like. B4X: rp.CheckAndRequest("any string will work here")
No offense taken. If you have a question then post the question. No need to ask me what I will do about it. What is the question? You can request any permission you like. B4X: rp.CheckAndRequest("any string will work here")
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2025 #2 Mehrzad238 said: @Erel will you do something about this? Click to expand... Please don't do this if you want me to help you. Upvote 0
Mehrzad238 said: @Erel will you do something about this? Click to expand... Please don't do this if you want me to help you.
Mehrzad238 Active Member Feb 12, 2025 #3 Sorry if I offended you or feel that way I didn`t want to I just wish that permissions existed in B4A Upvote 0
Sorry if I offended you or feel that way I didn`t want to I just wish that permissions existed in B4A
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2025 #4 No offense taken. If you have a question then post the question. No need to ask me what I will do about it. What is the question? You can request any permission you like. B4X: rp.CheckAndRequest("any string will work here") Upvote 0 Solution
No offense taken. If you have a question then post the question. No need to ask me what I will do about it. What is the question? You can request any permission you like. B4X: rp.CheckAndRequest("any string will work here")
LucaMs Expert Licensed User Longtime User Feb 13, 2025 #5 Erel said: What is the question? You can request any permission you like. Click to expand... He was asking you if you could (please?) add those constants to RuntimePermissions. @Mehrzad238, constants are convenient but not essential, you can search in the Android documentation what values you need to pass. This should work: ' Request Photo & Video Permissions (Android 13+) rp.CheckAndRequest("android.permission.READ_MEDIA_IMAGES") Upvote 0
Erel said: What is the question? You can request any permission you like. Click to expand... He was asking you if you could (please?) add those constants to RuntimePermissions. @Mehrzad238, constants are convenient but not essential, you can search in the Android documentation what values you need to pass. This should work: ' Request Photo & Video Permissions (Android 13+) rp.CheckAndRequest("android.permission.READ_MEDIA_IMAGES")