ios webview load from local files

Eumel

Active Member
Licensed User
Longtime User
Open the files tab in your IDE, select "Add Files", and choose your html file.

B4X:
Dim WebView1 as WebView

WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename"))
 
Upvote 0

Ramezanpour

Active Member
Licensed User
Longtime User
Open the files tab in your IDE, select tnx"Add Files", and choose your html file.

B4X:
Dim WebView1 as WebView

WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename"))
tnx

i load...
but images and css files dont work and dont show .

I copied the css files and images
 
Upvote 0

wineos

Member
Licensed User
Longtime User
If I am right, you should also change the images and css file paths to "file://.......". :p

Is there any experts can help?
 
Upvote 0
Top