I referred to this connection( https://www.b4x.com/android/forum/t...bview2-and-webviewassetloader.165222/#content )The webpage that loads the DirRootExternal path displays a net:: ERR-ACCESS-DENEID error. How to modify it correctly. Or place the webpage file in DirInternal, how to load the image of DirRootExternal in HTML? (Do not copy files)
B4X:
WebViewAssetLoader1.Initialize(Application.PackageName)
WebViewEx.Initialize(WebView1)
WebViewClient.Initialize("WebViewClient")
WebViewEx.SetWebViewClient(WebViewClient)
WebViewEx.JavaScriptEnabled=True
'File.Copy(File.DirAssets, "index.html", File.DirInternal, "index.html")
'WebView1.LoadUrl(WebViewAssetLoader1.InternalPathUrl & "index.html")
File.Copy(File.DirAssets, "index.html", File.DirRootExternal, "index.html")
WebView1.LoadUrl("file://" & File.DirRootExternal & "/index.html")