I'm developing on two devices and have come across a weird problem. On my my Galaxy Tab A with Android 7, when I run my program, everything appears to run fine, with no errors in the log, but when I run on my ZKC with Andoird 5, I get errors and it doesn't run. Here's the log.
It was working fine on ZKC device. I've verified the image is where it's meant to be. Strange it works find on one and not the other.
Colin
Copying updated assets files (4)
java.lang.RuntimeException: Unable to create service com.colinmeeks.abcclient.starter: java.lang.RuntimeException: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.colinmeeks.abcclient/files/virtual_assets/compuplusnew-300.jpg: open failed: ENOENT (No such file or directory)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2771)
at android.app.ActivityThread.access$1800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.colinmeeks.abcclient/files/virtual_assets/compuplusnew-300.jpg: open failed: ENOENT (No such file or directory)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:169)
at anywheresoftware.b4a.shell.Shell.start(Shell.java:102)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92)
at com.colinmeeks.abcclient.starter.onCreate(starter.java:34)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2761)
... 9 more
Caused by: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.colinmeeks.abcclient/files/virtual_assets/compuplusnew-300.jpg: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:456)
at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:448)
at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:156)
... 13 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:442)
... 16 more
It was working fine on ZKC device. I've verified the image is where it's meant to be. Strange it works find on one and not the other.
Colin