Hey guys, I'm working on a ringtone picker as part of my app, part of that is listing all audio files on the user device and playing them individually upon user request, thread 🧵
stackoverflow 2
not kotlin but kotlin colored 3
Ahmed Mourad
08/26/2023, 2:08 PM
So I use the MediaStore API to list all the audio files as follows:
I also request them at runtime, but on Android 10 devices (and probably on newer ones as well) I'm getting this error:
Copy code
java.io.FileNotFoundException: /storage/emulated/0/Samsung/Music/Over_the_Horizon.mp3: open failed: EACCES (Permission denied)
Ahmed Mourad
08/26/2023, 2:14 PM
I know this's related to scoped storage, but I can't figure out from the docs how to fix it
c
Chrimaeon
08/26/2023, 2:14 PM
Wrong workspace. Over here we talk about the Kotlin programming language and all related topics. You question is pure android and should be asked on a different platform.