Shay Well-Known Member Licensed User Longtime User Oct 22, 2011 #1 Hi I wish to create help files in my app, and per Erel suggestion to use html files so I created html files, and copied it to new sub folder, But how do I open/show it? Thanks Shay
Hi I wish to create help files in my app, and per Erel suggestion to use html files so I created html files, and copied it to new sub folder, But how do I open/show it? Thanks Shay
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2011 #2 You can load it with WebView.LoadUrl. B4X: file:///android_asset is the location of the assets folder. Make sure to reference the files with lower cased names. Upvote 0
You can load it with WebView.LoadUrl. B4X: file:///android_asset is the location of the assets folder. Make sure to reference the files with lower cased names.
Shay Well-Known Member Licensed User Longtime User Oct 22, 2011 #3 already tried both these options - what am I missing? (geting white screen) Dim url As String 'url="file:///" & File.DirDefaultExternal& "/help/mainmenu_e.htm" url="file:///android_asset/help/mainmenu_e.htm" WebView1.LoadHtml(url) Upvote 0
already tried both these options - what am I missing? (geting white screen) Dim url As String 'url="file:///" & File.DirDefaultExternal& "/help/mainmenu_e.htm" url="file:///android_asset/help/mainmenu_e.htm" WebView1.LoadHtml(url)
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2011 #4 You should use LoadUrl. LoadHtml expects an Html string. Upvote 0
Shay Well-Known Member Licensed User Longtime User Oct 22, 2011 #5 solved url="file:///" & File.DirDefaultExternal&"/help/mainmenu_e.htm" WebView1.LoadUrl(url) Upvote 0