Always recommended when facing annoying bugs.
I will see if I can reproduce it.
Well, it is partially? - Fixed. I no longer get the problem on the pixel 7 but it is still there on the Samsung Galaxy Tab A7 lite and very consistent. I uninstalled the app and reinstalled - still there.
It happens only the FIRST time toast is called. After that it works fine.
I was able to work around the problem by simply calling toast immediately after initializing it.
It always fails but only the once.
Toast.Initialize(Activity)
'TESTING ONLY!!!
Try
Toast.Show("TEst")
Catch
Log(LastException.Message)
End Try
I have another toast on a different activity that has no issue so evidently it is only the first time on any toast.
Log(File.exists(File.DirAssets, "emoji-data.txt")) in release mode always returns false.
I notice I have a lot of copies of this file in windows but nothing this year. It is always in ...\Object\b4xLibs\files
I I just discovered I am getting the same error. When using
BCTextEngine.
This always fails. Not just the first time.
Dim BTE As BCTextEngine
Private BBText As BBLabel
.
Dim P As B4XView = XUI.CreatePanel("")
.
BTE.Initialize(P)
BBText.Text = Text
.
And again, works fine on Pixel 7, fails on the Samsung.