B4J Question load local html

appie21

Active Member
Licensed User
Longtime User
Hello
I try to load a local html file
But i can't get the right code

B4X:
File.WriteString(File.DirApp, "table.html", TXT)
WebView1.LoadUrl((File.DirApp,"table.html"))

i have also try
WebView1.LoadUrl("file://" & File.Combine(File.DirApp, "table.html"))
But with any luck
 

stevel05

Expert
Licensed User
Longtime User
Try WebView1.LoadUrl(File.GetUri(File.DirApp, "table.html"))
 
Last edited:
Upvote 0
Top