Android Question WebView Unable to load local html

kuosda

Active Member
Licensed User
Longtime User
1.html files such as testhtml.jpg
2.WebView can not load test.html
As shown WebViewTest1, WebViewTest2, WebViewTest3, WebViewTest4
 

Attachments

  • testhtml.jpg
    testhtml.jpg
    41.5 KB · Views: 184
  • WebViewTest1.jpg
    WebViewTest1.jpg
    275.3 KB · Views: 190
  • WebViewTest2.jpg
    WebViewTest2.jpg
    275.1 KB · Views: 216
  • WebViewTest3.jpg
    WebViewTest3.jpg
    270.4 KB · Views: 209
  • WebViewTest4.jpg
    WebViewTest4.jpg
    274.4 KB · Views: 185

udg

Expert
Licensed User
Longtime User
Hi,

try
B4X:
WebView1.LoadUrl("file://" & File.Combine(File.DirAssets, "yourhtmlfilename"))
 
Upvote 0

udg

Expert
Licensed User
Longtime User
ooops!
Anyway, reading Erel's post #3 you should solve the problem. I missed your "debug (rapid)" option too!

Maybe it's time for my second cofee...
 
Upvote 0

kuosda

Active Member
Licensed User
Longtime User
1
main module ?
#Region Project Attributes
←? #DebuggerForceStandardAssets: true
#End Region
#Region Activity Attributes
←? #DebuggerForceStandardAssets: true
#End Region

2
I can change other folder it?
 
Upvote 0
Top