Am having major problem loading a local web page, IMG not showing:
1. I can load background images onto Webview:
2. I can load webpage onto Webview but the pictures don't show:
I have read:
https://www.b4x.com/android/forum/threads/animated-gif-not-running-on-webview.33781/#content
https://www.b4x.com/android/forum/threads/webview-load-file-from-file-dirinternal.19058/#content
https://www.b4x.com/android/forum/threads/adding-an-animated-gif-to-your-app.29872/
and
https://www.b4x.com/android/forum/threads/webview-tutorial.24343/ ' post #20 - remote page shows img, local page doesn't
https://www.b4x.com/android/forum/threads/webview-tutorial.24343/page-2
How to modify the HTML and point to the image in the assets directory?
1. I can load background images onto Webview:
B4X:
WebV.LoadHtml("<html><body background='file:///android_asset/image.jpg'></body></html>")
B4X:
Sub Process_Globals
Dim wbpage As String
End Sub
Sub Globals
Private wv1 As WebView
Private Button1 As Button
End Sub
Sub Button1_Click
wbpage = File.ReadString(File.DirAssets, "mywebpage.htm")
wv1.LoadHTML(wbpage)
End Sub
https://www.b4x.com/android/forum/threads/animated-gif-not-running-on-webview.33781/#content
https://www.b4x.com/android/forum/threads/webview-load-file-from-file-dirinternal.19058/#content
https://www.b4x.com/android/forum/threads/adding-an-animated-gif-to-your-app.29872/
and
https://www.b4x.com/android/forum/threads/webview-tutorial.24343/ ' post #20 - remote page shows img, local page doesn't
https://www.b4x.com/android/forum/threads/webview-tutorial.24343/page-2
How to modify the HTML and point to the image in the assets directory?