Android Question how to see picture of html local files

jerome lachevre

New Member
Licensed User
Longtime User
Hi

i am new of b4a and i need some help,

i am just trying to display a local html files with pictures.
i am using this code

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
WebView1.Initialize("WebView1_Click")
Activity.LoadLayout("WebView")
myHTML = File.ReadString(File.DirAssets,"Us_smart.html")
WebView1.LoadHtml(myHTML)
End Sub


but the picture dose'nt appear.


if anyone can help me ......

thanks

JL
 

udg

Expert
Licensed User
Longtime User
Hi Jerome,

please have a look at this tutorial and/or read the WebView documentation.
BTW, function LoadHtml is not what you need.

Umberto
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Hi jerome,

if after reading those docs you feel you still need any help, just ask.
 
Upvote 0
Top