netkomm Active Member Licensed User Longtime User Aug 1, 2016 #1 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 Code: Copy web.LoadHtml(File.ReadString(File.DirAssets, Main.pageToOpen & "_" & Main.chosenLanguage & ".html")) This one works only in debug mode but crashes in release Code: Copy 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?
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 Code: Copy web.LoadHtml(File.ReadString(File.DirAssets, Main.pageToOpen & "_" & Main.chosenLanguage & ".html")) This one works only in debug mode but crashes in release Code: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Aug 1, 2016 #2 You will see the logs if you connect in USB debug mode. If possible please upload a small project that demonstrates this issue.
You will see the logs if you connect in USB debug mode. If possible please upload a small project that demonstrates this issue.
netkomm Active Member Licensed User Longtime User Aug 1, 2016 #3 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!
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!