Embed a piece of HTML code or Javascript script inside webview in android
android, android-webview, embed, html, javascript
Solution
you can create the html page and put the asset folder and load the html page in webview.
using this code:
webView.loadUrl("file:///android_asset/index.html");
Problem
I got a small piece of Javascript and HTML code of a table containing statistics that I want to embed into a WebView in my android app. How do i go about doing that. Can someone suggest me with an example and sample code. Please help