0

Using Android, I have a WebView. I create html locally which includes references to css, javascript and images in the Assets folder. This local html is then displayed.

How do I get the WebView to reference the Assets' javascript and images?

I am guessing I need to tell the HTML VIew that the base folder is the Assets folder? If so, how?

Ian Vink
  • 66,960
  • 104
  • 341
  • 555
  • Possible duplicate. http://stackoverflow.com/questions/5649111/android-webview-loading-javascript-file-in-assets-folder – jlindenbaum Apr 23 '13 at 21:25

1 Answers1

0

You should acces the file index.html using this location:

file:///android_asset/index.html
tasomaniac
  • 10,234
  • 6
  • 52
  • 84