Dear All,
I´m getting the below error:
...after having fun changing a bunch of stuff in my code, and I really can´t see what I´m doing wrong here. This is the trigger:
I even tried running the line when the apps first activity appears, to make sure that it´s not somehow conflicting with stuff going on later, but with the same result.
I´m using the memu emulator, and as far as I can tell, it has not updated itself to a newer version that could cause this to happen. Also, write permissions on dirdefaultexternal are showing as True. The /usernametmp/messages/headers path and file don´t exist yet, but before I would sit and delete it all the time, where it´d be automatically created when debugging the app.
EDIT: Just tried creating the file with es file explorer and now I´m not getting the error. So the question is why initialize2 won´t create the file for me anymore as it used to?
FYI, b4a creates the b4a.example/files/ dir upon launch, so indeed the device CAN be written to.
Any idea what I´m doing wrong?
I´m getting the below error:
B4X:
java.io.FileNotFoundException: /storage/emulated/0/Android/data/b4a.example/files/messages/headers: open failed: ENOENT (No such file or directory)
...after having fun changing a bunch of stuff in my code, and I really can´t see what I´m doing wrong here. This is the trigger:
B4X:
RAF.Initialize2((File.DirDefaultExternal & "/" & usernametmp & "/messages/"),"headers", False,False)
I even tried running the line when the apps first activity appears, to make sure that it´s not somehow conflicting with stuff going on later, but with the same result.
I´m using the memu emulator, and as far as I can tell, it has not updated itself to a newer version that could cause this to happen. Also, write permissions on dirdefaultexternal are showing as True. The /usernametmp/messages/headers path and file don´t exist yet, but before I would sit and delete it all the time, where it´d be automatically created when debugging the app.
EDIT: Just tried creating the file with es file explorer and now I´m not getting the error. So the question is why initialize2 won´t create the file for me anymore as it used to?
FYI, b4a creates the b4a.example/files/ dir upon launch, so indeed the device CAN be written to.
Any idea what I´m doing wrong?
Last edited: