Since this afternoon I've got a very strange error with webview. I've done this 100 times, but now it didn't work anymore. this is the code (project is attached, because it contains an image and a htmlpage):
The webview don't show the linked image:
even my older projects, which worked before don't work anymore....I am a little bit desperated at the moment
[UPDATE] the zip is updated. The error is not related to B4A 5.80. Same on other computer with B4A 5.50. I am confused, because a project which i compiled today shows the same error, but 1 week ago, same code, all was ok??? feeling like a newbie...
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Dim wv As WebView
wv.Initialize("")
Activity.AddView(wv,0,0,100%x,100%y)
wv.Loadhtml(File.ReadString(File.DirAssets, "impressum.html"))
Log(File.ReadString(File.DirAssets, "impressum.html"))
Log("File exists " & File.Exists(File.DirAssets, "impressum_logo.png"))
End Sub
B4X:
<img src="file:///android_asset/impressum_logo.png" width="320" height="102" border="0">
[UPDATE] the zip is updated. The error is not related to B4A 5.80. Same on other computer with B4A 5.50. I am confused, because a project which i compiled today shows the same error, but 1 week ago, same code, all was ok??? feeling like a newbie...
Attachments
Last edited: