Hello,
I found out this bug. I am using B4A version 6.0 and the device is running Android 6.
In brief: when starting a new activity I have a webview that is going to be populated with a static html page (it refers to external JS libraries).
If I place the HTML file in the asset files (loading in using B4A) I have no problem. If I place them in a subfolder inside the "Files" folders, it works perfectly if I execute the program in debug mode but it crashes when running in release mode.
Thins line of code always works
This one works only in debug mode but crashes in release
Is there a way to get the log of the crash of the release app so to understand what is going wrong?
I found out this bug. I am using B4A version 6.0 and the device is running Android 6.
In brief: when starting a new activity I have a webview that is going to be populated with a static html page (it refers to external JS libraries).
If I place the HTML file in the asset files (loading in using B4A) I have no problem. If I place them in a subfolder inside the "Files" folders, it works perfectly if I execute the program in debug mode but it crashes when running in release mode.
Thins line of code always works
B4X:
web.LoadHtml(File.ReadString(File.DirAssets, Main.pageToOpen & "_" & Main.chosenLanguage & ".html"))
This one works only in debug mode but crashes in release
B4X:
web.LoadHtml(File.ReadString(File.DirAssets, "/html/" & Main.pageToOpen & "_" & Main.chosenLanguage & ".html"))
Is there a way to get the log of the crash of the release app so to understand what is going wrong?