when i try to create a webView in android studio and point it here: file:///src/main/assets/www/index.html, it keeps saying that it can not find the file path.
Thanks in advance.
Mitch
when i try to create a webView in android studio and point it here: file:///src/main/assets/www/index.html, it keeps saying that it can not find the file path.
Thanks in advance.
Mitch
Use file:///android_asset/www/index.html
. There is no src/main/assets/
directory on the device -- that is simply how your project is structured. Assets are packaged as part of the ZIP archive that is the APK file; file:///android_asset/
is a means for WebView
to pull from the project assets.
tag and am linking to javascript and CSS files that are in the same directory as teh index.htlml
– mitchell anderson Sep 03 '14 at 23:47