Bug? Web View crash in release mode

netkomm

Active Member
Licensed User
Longtime User
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

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?
 

netkomm

Active Member
Licensed User
Longtime User
Hi Erel,

I just noticed that "/html/" in release mode has to be "html/" or it will crash.

Stange that it works in debug mode.

Thanks!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…