How to load data from string value on webview? I've try this:
web.loadData(getResource().getString(R.string.webdata), "text/html","UTF-8");
But it get error. Please, help me.
How to load data from string value on webview? I've try this:
web.loadData(getResource().getString(R.string.webdata), "text/html","UTF-8");
But it get error. Please, help me.
try this
WebView webview = (WebView)this.findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadDataWithBaseURL("", data, "text/html", "UTF-8", "");