Permission issue in reading file from external storage

Thank you for all the information. I’ll go through it and see.
Currently, I’m still seeing loadStrings():

java.lang.IllegalArgumentException: File /storage/emulated/0/twinkBOSS/env.txt contains a path separator

which I had before. I also tried ‘//’ without success.

I also tried:

I added:

println( listFile[i]);

in the ‘else’ section and didn’t see any file listed at all. It basically goes through all directories recursively without listing any files. Probably, missing permission in accessing files. I’ve also found articles about permission changes in Android 10 and some older solutions won’t work any more. Can this be a reason?