My app is running fine on more than 100 devices, but suddenly I'm experiencing this kind of problem on a fresh new just bought Asus Zenpad 8.0, look at this code:
It works as expected, and I see the directory "bmap4atest" is created and the file "hello" is inside it
(root/sdcard/bmap4atest)
But if I change the name of the directory from "bmap4atest" to "bmap4a" that code fails and I get the error
(the error is at th eline file.writestring ..)
Am I becoming crazy ? Why the hell I can't use "bmap4a" as a directory name only on this device ?
update: believe me, it made me crazy for 2 hours, the problem is suddenly disappeared. I don't know what to say, may be the device has some problems
B4X:
Dim fn As String="bmap4atest"
If File.exists(File.DirRootExternal,fn)=False Then File.MakeDir(File.DirRootExternal,fn)
File.WriteString(File.DirRootExternal & "/" & fn,"prova","hello")
It works as expected, and I see the directory "bmap4atest" is created and the file "hello" is inside it
(root/sdcard/bmap4atest)
But if I change the name of the directory from "bmap4atest" to "bmap4a" that code fails and I get the error
B4X:
java.io.FileNotFoundException: /storage/emulated/0/bmap4a/prova: open failed: ENOENT (No such file or directory)
(the error is at th eline file.writestring ..)
Am I becoming crazy ? Why the hell I can't use "bmap4a" as a directory name only on this device ?
update: believe me, it made me crazy for 2 hours, the problem is suddenly disappeared. I don't know what to say, may be the device has some problems
Last edited: