I have a small offline web that at some point my application will show through a webview.
Where should I put the website in my android resources folder in order to be able to load all the javascripts, css etc?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check assets, i think its exactly what you want.
Here is how I use assests. My hierarchy:
– assets
| – help.html
| – some.js
| – images
| – | – banner.jpg
| – | – bg.jpg
then in app, I use WebView as layout. Then;
webView.loadUrl(“file:///android_asset/help.html”);