Dear forum experts,
I have some programming experience, but I'm new to B4A and programming for Android.
I have a quite simple app. It listens to UDP and whenever it receives ANYTHING (for the moment), it starts an mp3 with Media Player.
This works fine with File.DirAssets, but I would prefer to just put the mp3 on the phone and use File.DirRootExternal.
I understand that File.DirRootExternal is the internal memory of the phone and not the SD card, but I got error messages
that lead me to the vague conclusion that the file cannot be accessed - not, because it does not exist, but because of missing
permission.
I found out that when I manually give the installed app the permission to access memory in phone settings, it works.
So I searched for a way to do this automatically or at least make the phone ask for permission and found this to be added to the manifest:
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="19" />)
But it doesn't work.
Can you please provide some help?