GMan Well-Known Member Licensed User Longtime User Jul 27, 2020 #1 Here is the code i have, but dont work: B4X: Dim url="file:\\\" & File.Combine(File.DirAssets, "help.html" As String) Log("Loading " & url) HelpWebView.LoadUrl(url)
Here is the code i have, but dont work: B4X: Dim url="file:\\\" & File.Combine(File.DirAssets, "help.html" As String) Log("Loading " & url) HelpWebView.LoadUrl(url)
EnriqueGonzalez Well-Known Member Licensed User Longtime User Jul 27, 2020 #2 Instead of file:\\\ use file.geturi GMan said: As String Click to expand... And.... Take this away... Upvote 0
Instead of file:\\\ use file.geturi GMan said: As String Click to expand... And.... Take this away...
EnriqueGonzalez Well-Known Member Licensed User Longtime User Jul 27, 2020 #3 Actually.... It is almost all wrong, read the HTML file as a string, and load the HTML directly instead of the url. Upvote 0
Actually.... It is almost all wrong, read the HTML file as a string, and load the HTML directly instead of the url.
GMan Well-Known Member Licensed User Longtime User Jul 27, 2020 #4 I used it this way and it works: B4X: Dim url = File.geturi(File.DirAssets,"help.html" As String) Log("Loading " & url) HelpWebView.LoadUrl(url) without "as String" it causes a warning Upvote 0
I used it this way and it works: B4X: Dim url = File.geturi(File.DirAssets,"help.html" As String) Log("Loading " & url) HelpWebView.LoadUrl(url) without "as String" it causes a warning
TILogistic Expert Licensed User Longtime User Jul 27, 2020 #5 ????? File.geturi(File.DirAssets,"help.html" As String) Click to expand... Dim BaseURL As String = File.GetUri(File.DirAssets,"help.html") HelpWebView.LoadUrl(BaseURL) Click to expand... Last edited: Jul 27, 2020 Upvote 0
????? File.geturi(File.DirAssets,"help.html" As String) Click to expand... Dim BaseURL As String = File.GetUri(File.DirAssets,"help.html") HelpWebView.LoadUrl(BaseURL) Click to expand...
TILogistic Expert Licensed User Longtime User Jul 27, 2020 #7 GMan said: View attachment 97712 Click to expand... Dim url As String = File.geturi(File.DirAssets,"help.html") Upvote 0
GMan said: View attachment 97712 Click to expand... Dim url As String = File.geturi(File.DirAssets,"help.html")
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2020 #8 Better to use XUI.FileURI which is cross platform. Upvote 0