This code works fine on the emulator:
List1 = File.ReadList(File.DirRootExternal, "/B4A/UnitDir/UnitDir.txt")
But it doesn't work on the actual device (which has the text file stored in that path). I get the following error message:
java.io.FileNotFoundException:
/mnt/sdcard/B4A/UnitDir/UnitDir.txt (permission denied)
I thought the use of FileDirRootExternal set the appropriate permissions (per this thread): http://www.b4x.com/forum/basic4andr...als/6808-error-writing-sd-card-how-solve.html
Can someone help me solve this permission problem?
List1 = File.ReadList(File.DirRootExternal, "/B4A/UnitDir/UnitDir.txt")
But it doesn't work on the actual device (which has the text file stored in that path). I get the following error message:
java.io.FileNotFoundException:
/mnt/sdcard/B4A/UnitDir/UnitDir.txt (permission denied)
I thought the use of FileDirRootExternal set the appropriate permissions (per this thread): http://www.b4x.com/forum/basic4andr...als/6808-error-writing-sd-card-how-solve.html
Can someone help me solve this permission problem?