I'm new to B4A. I have been trying it out by writing an app to replace one I wrote in VB6. It's been fun playing with B4A. My app works great in debug mode, but when I compile for release then run it the app throws an error when it tries to access the same directory.
And what @DonManfred forgot to do was welcome you to the forum, I see this is your first post.
With any type of fault it is always good to include the actual fault message or copy and paste the log.
If you are able to share your code then the best way to get help is to zip your project and upload it.
Error Occurred
An error has occurred in sub:
java.io.IOException:/storage/extSdCard/lscpr/music is not a folder.
Continue?
and it offers a yes and no button.
/storage/extSdCard/lscpr/music is a folder according to the file browser on my android device. And when I run the same app but in debug mode the folder is found and the assignment to the list works. I can even play the songs.
1. The external storage varies between different devices.
2. When you call File.DirRootExternal or File.DirDefaultExternal the compiler adds the required permission automatically.
I'll check again, but I think File.DirRootExternal returned the emulated storage which is actually internal versus the actual SD card. This is for a Galaxy Tab 3 running android 4.4.2.
Assuming I can't use File.DirRootExternal is there a workaround to make this work. It's frustrating that it works in debug mode but not in release mode. Makes me think there is something else that needs to be deployed.
Well this is interesting. I added Msgbox(File.DirDefaultExternal,"2") and after it prompts me and I hit ok the program works like it does in debug mode. I guess there is something wonky about File.DirDefaultExternal on the Galaxy Tab 3. At lease I know it will work.