Hello friends, i have an old b4a app witch read html file from File.DirAssets with tihs code and display it on WebView:
Into about.html i have this code:
BUT! Yesterday i install clear copy of Windows 10 64 bit. Then I install everithing for B4A acording https://www.b4x.com/b4a.html.
Since then i cant display images from about.html. file:///android_asset/ is not work....
On my other pc with B4A ver. 10 everithing works perfect
I check - the problem is not in Jdk 11. Everithin else is the same. Can anybody give me a clue?
I attach a little project witch not work on b4a ver. 11
B4X:
Activity.LoadLayout("home")
html = File.ReadString(File.DirAssets , "about.html")
WebView1.Initialize("WebView1")
Activity.AddView(WebView1, 0, 0, 100%x, 100%y)
WebView1.JavaScriptEnabled = True
WebView1.ZoomEnabled=False
' html = html.Replace("__BOOK_TITLE__",appBookName)
' html = html.Replace("__BOOK_DESCRIPTION__",appBookDescription)
WebView1.LoadHtml(html)
Into about.html i have this code:
HTML:
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body background='file:///android_asset/images/image2.jpg'>
<!-- page content -->
some text here
<img src="file:///android_asset/images/image.jpg" alt="Smiley face" height="542" width="542">
another text here
</body>
</html>
BUT! Yesterday i install clear copy of Windows 10 64 bit. Then I install everithing for B4A acording https://www.b4x.com/b4a.html.
Since then i cant display images from about.html. file:///android_asset/ is not work....
On my other pc with B4A ver. 10 everithing works perfect
I check - the problem is not in Jdk 11. Everithin else is the same. Can anybody give me a clue?
I attach a little project witch not work on b4a ver. 11
Attachments
Last edited: