I used a database to store the URI for an mp3 file, but when I restart the app, trying to set the source returns an error saying that it failed to load, and when i get the URI again its still the same though
URI was:
In the near future (Android 10+, Android 11) there are only two directories that you can store files in:
App Specific Directory (aka ASD) - currently requires Taifun's File Extension to create it
App Private Directory (aka Assets) - the directory were the in-App files are stored. However, most music mp3 files are too big for the App Private Directory.
Note, re Error 701. The % delimiter characters could be the cause of the issue - they work with HTML, one or more of them may not work with Android/App Inventor so you could decipher those in the App to use regular UTF-8 characters.
Yes you can, but as I explained, the file should be stored in the App Specific Directory. If the App is only for your use and will only be used on Android v10 and below, you can store your file where it is now or anywhere else that's convenient.
Note, some of the % codes are still inadvisable in a file path - %3A for example is a colon, %5B a square bracket, so a straight conversion may not yield a valid path.
It does have to be a full path and unfortunately we can't necessarily tell you what the path might be since different device manufactures organize the directories differently, including folder names. How are does the file get to where it is in the first place? Perhaps the easiest way to check the path is via your PC - USB cable connection.