There are several errors in your blocks
- you forgot the else part
If api version <= 33
Then ask for read external storage permission
Else ask for read media audio permission
-
get the file list after you got permission... currently you ask for permission and immediately try to get the list, this will not work
I e. Moce that block into the button click event -
rename your variable newSound to listSounds
-
learn to work with lists, there is no need to use those replace all text blocks
-
if you only want to display the filename in the label, check again my jukebox example to find out how to do it
-
the source property of the player expects the complete path to the sound file, see again the jukebox example
Taifun