Hello,
I am trying to download a file using an HttpJob named jobGetDB:
It works fine on one of my devices, but when I try on another, I get an error,
This happens before the JobDone event.
On different runs of the program the number after /data/user/0/b4a.fol/cache is different.
I have created manually directory /data/user/0/b4a.fol/cache on Internal Storage, but it does not help.
I am trying to download a file using an HttpJob named jobGetDB:
B4X:
jobGetDB.Initialize("GetDB", Me)
jobGetDB.Download(strURL)
java.lang.RuntimeException: java.io.FileNotFoundException: /data/user/0/b4a.fol/cache/3: open failed: ENOENT (No such file or directory)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:206)
at anywheresoftware.b4a.BA$2.run(BA.java:328)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:168)
at android.app.ActivityThread.main(ActivityThread.java:5845)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
Caused by: java.io.FileNotFoundException: /data/user/0/b4a.fol/cache/3: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:370)
at anywheresoftware.b4a.samples.httputils2.httputils2service._hc_responsesuccess(httputils2service.java:130)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
... 8 more
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
... 13 more
This happens before the JobDone event.
On different runs of the program the number after /data/user/0/b4a.fol/cache is different.
I have created manually directory /data/user/0/b4a.fol/cache on Internal Storage, but it does not help.