I have implemented a WebView to display application help. It loads an asset file using Erel's WebViewAssetFile sub. This works very well in the emulator and on the real device for simple html documents that I write from scratch.
So now for the serious stuff. I have an index.html and a lot of support files. These are generated by HelpAndManual, a help authoring tool. This tool can generate many different outputs and is typically used (by me) to produce Microsoft compiled help files (.chm). It can also generate WebHelp files which are (supposed) to be OS agnostic.
I generate the WebHelp and it works perfectly in my browser. When I try to use it my Android app I just get the source displayed. I expect this will be quite confusing to my customers and not at all useful.
I seem to be missing something here. Are there some kind of limitations on the capabilities of WebView?
Where should I begin looking for the solution to this?
I've looked at the source and it appears to be "vanilla" html. A default project style sheet, a bit of simple javascript, and little more.
Any help would be appreciated.
So now for the serious stuff. I have an index.html and a lot of support files. These are generated by HelpAndManual, a help authoring tool. This tool can generate many different outputs and is typically used (by me) to produce Microsoft compiled help files (.chm). It can also generate WebHelp files which are (supposed) to be OS agnostic.
I generate the WebHelp and it works perfectly in my browser. When I try to use it my Android app I just get the source displayed. I expect this will be quite confusing to my customers and not at all useful.
B4X:
HelpView.LoadUrl(BalUtils.WebViewAssetFile("index.html"))
I seem to be missing something here. Are there some kind of limitations on the capabilities of WebView?
Where should I begin looking for the solution to this?
I've looked at the source and it appears to be "vanilla" html. A default project style sheet, a bit of simple javascript, and little more.
Any help would be appreciated.