UPDATE: It only fails the FIRST time. I put a test Toast immediatly after the initialize. IT failed but the one below did not.
This a B4A only project. NOT B4XPages.
Fails on this line:
Error:
Compiles fine, no errors.
This a B4A only project. NOT B4XPages.
Fails on this line:
B4X:
Toast.Show($"[textsize=20]Licensed until: ${A}[/textsize]"$)
B4X:
*** Service (starter) Create ***
*** Service (starter) Create completed ***
*** Service (starter) Started ***
** Service (starter) Start **
*** Service (starter) Started completed ***
** Activity (main) Create (first time) **
** Activity (main) Resume **
Error occurred on line: 1201 (BCTextEngine)
java.io.FileNotFoundException: /data/user/0/com.ISS.MJL2Testing/files/virtual_assets/emoji-data.txt: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:574)
at java.io.FileInputStream.<init>(FileInputStream.java:179)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:205)
at anywheresoftware.b4a.objects.streams.File.ReadList(File.java:239)
at com.ISS.MJL2Testing.bctextengine._loaddata(bctextengine.java:2045)
at com.ISS.MJL2Testing.bctextengine._createglyph(bctextengine.java:1695)
at com.ISS.MJL2Testing.bctextengine._createglyphfromdefaultcolor(bctextengine.java:1735)
at com.ISS.MJL2Testing.bctextengine._createglyph(bctextengine.java:1574)
at com.ISS.MJL2Testing.bctextengine._getkernspacebetweenchars(bctextengine.java:2284)
at com.ISS.MJL2Testing.bctextengine._createsinglesection(bctextengine.java:2173)
at com.ISS.MJL2Testing.bctextengine._createunbreakable(bctextengine.java:2340)
at com.ISS.MJL2Testing.bctextengine._handletextrun(bctextengine.java:3208)
at com.ISS.MJL2Testing.bctextengine._prepare(bctextengine.java:2848)
at com.ISS.MJL2Testing.bctextengine._drawtext(bctextengine.java:980)
at com.ISS.MJL2Testing.bblabel._redraw(bblabel.java:192)
at com.ISS.MJL2Testing.bblabel._parseanddraw(bblabel.java:157)
at com.ISS.MJL2Testing.bblabel._settext(bblabel.java:79)
at com.ISS.MJL2Testing.bctoast$ResumableSub_Show.resume(bctoast.java:233)
at com.ISS.MJL2Testing.bctoast._show(bctoast.java:115)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:209)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:281)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:150)
at anywheresoftware.b4a.BA$2.run(BA.java:380)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:574)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
at libcore.io.ForwardingOs.open(ForwardingOs.java:574)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8782)
at libcore.io.IoBridge.open(IoBridge.java:560)
... 37 more
Last edited: