0

I have a WebView on my activity and I'm simply setting his url in code from assets like this:

wv.loadUrl("file:///android_asset/" + requestedHtmlPath);

all works fine when the wifi is on, but when it's off.. nothing happens..

The question is: Is the Wifi on is must for the WebView to work with a local html file?

Adler
  • 1,432
  • 3
  • 15
  • 27

1 Answers1

0

Well, the answer is that there is no issue with WebView when Wifi is off, the thing is that I had in my html file an include to a js file on the web and when the Wifi was off obviously...

Thanks!

Adler
  • 1,432
  • 3
  • 15
  • 27