I am using "ShowExternalDocument" to display a HTM file. It works when I compile in Debug mode but when I compile in Release mode I get a pop up that tells me I need an App.
B4X:
Sub Help_action
fx.ShowExternalDocument(File.GetUri(File.DirAssets, "helpfile.htm"))
End Sub
Hi Roger,
that is because the Assetfolder will not be accessible to other programs in the release state of your programm, the files are packaged inside the Jar files. Put the help file into the File.DirApp folder and it will work in release mode...
Thanks Stephen,
So easy when you know.
The B4A version used a WebView, I didn't occur to me that using a browser would be a problem. When you point it out it becomes obvious.