Hello everyone.
Problem is to use StorageExternal to pass required Folder to play files
Before this I successfully play files from External Storage (SD card) by getting permission for whole sd _card: I add
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
in manifest and ask for permission: rp.CheckAndRequest(ServiceModule.rp.PERMISSION_READ_EXTERNAL_STORAGE)
The problem is that AudioPlayer need exact FOLDER_PATH and filename. I'm manually use "/storage/B5FD-1304/MYMP3" folder path and this works great, but prefix for this path is different for every android device and I need that user select this folder by himself. So
works great, but I cannot use it for AudioPlayer, because cannot extract folder path..
Problem is to use StorageExternal to pass required Folder to play files
Before this I successfully play files from External Storage (SD card) by getting permission for whole sd _card: I add
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
in manifest and ask for permission: rp.CheckAndRequest(ServiceModule.rp.PERMISSION_READ_EXTERNAL_STORAGE)
The problem is that AudioPlayer need exact FOLDER_PATH and filename. I'm manually use "/storage/B5FD-1304/MYMP3" folder path and this works great, but prefix for this path is different for every android device and I need that user select this folder by himself. So
Select root folder:
Storage.SelectDir(False)
Wait For Storage_ExternalFolderAvailable
Last edited: