Android Question WebView problem

kepler

Active Member
Licensed User
Longtime User
Greetings

This is probably a "dumb" question but... I get the html pages not found in the full WebView project,in the tutorial project - still,they are in the files folder. I even added them in the folder list (by sinc and manual).

Which is the correct way to load offline html pages in a WebView in B4A please? Where are they (isn't in the Files dir?) ?

Kind regards,

Kepler
 

ronell

Well-Known Member
Licensed User
Longtime User
Greetings

This is probably a "dumb" question but... I get the html pages not found in the full WebView project,in the tutorial project - still,they are in the files folder. I even added them in the folder list (by sinc and manual).

Which is the correct way to load offline html pages in a WebView in B4A please? Where are they (isn't in the Files dir?) ?

Kind regards,

Kepler

B4X:
WebView1.LoadHtml("<html><body><img src='file:///android_asset/someimage.jpg'/></body></html>")


can you post your code?
 
Last edited:
Upvote 0

An Schi

Well-Known Member
Licensed User
If you are in debug mode you have to add something like "force assets". In release mode it works wirhout it.
 
Upvote 0
Top