I´m building an app that you can add mp3 files onto a list to listen to them (basicly a music player app)
But the problem is that you gotta add the songs manually so it would be better that when opening the app for the first time, all of the mp3 files would import to the list by itself.
I want to do what @Anke did with the play from sdCards (https://drive.google.com/file/d/1gy_yDbk0yLgQBqbCeQViIPek90OFHFGX/view?usp=sharing)
This APK was built on the test server (targetSdk = 30).
Try it especially on Android 11 devices with a removable (micro) SD card.
Note:
This request is addressed to everyone who has an Android 11 device with an external (removable) SD card. Please test it and tell us if it works there too.
(It works (tested) on Android 11 devices without a removable SD card.)
Unfortunately, I have neither an Android 10 nor Android 11 test device with an external (removable) SD card.
I did this method and it does read the files on the sd card automaticly but, when the app starts it returns this error: The operation add items to list cannot accept the arguments: , [""], ["/storage/2295-1DEA/Music/Minecraft.mp3"]
These are my blocks:
Already provided the code. See when TaifunjFile1.AfterFileListAsync Event Handler.
Create global musicFiles and create global songList Lists. The add items to list Block creates a new List without the path and strips the path information. What you place in segment depends on your path (not mine). Set that list to the ListPicker.Elements and see what happens.