Android Question [Solved ... más o menos] Please help: Error with webview

eurojam

Well-Known Member
Licensed User
Longtime User
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):
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
The webview don't show the linked image:
B4X:
<img src="file:///android_asset/impressum_logo.png" width="320" height="102" border="0">
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...:(
 

Attachments

  • test.zip
    21.3 KB · Views: 114
Last edited:

asales

Expert
Licensed User
Longtime User
The error is not related to B4A 5.80.
No error here (using B4A 5.8 final). Works fine.
1.png
 
Upvote 0

eurojam

Well-Known Member
Licensed User
Longtime User
thanks a lot, that helps. It looks like image below in DEBUG mode, but in Release mode it is ok...puuuhhh puuuuhh....I don't understand it, but that is finally ok. May be one of the experts will explain it to me one day:):):)

best
stefan
Screenshot_20160222-185137.png
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top