Questions tagged by "webview"


2
 bounty
0
answers
Loading dynamic html and javascript from assets in a WebView
10 years ago • alexander.kojemyakin
I am trying to display my domain object in a webview. The UI is simple jQuery Mobile. The HTML displays, but the CSS and javascript from the assets folder does not. I create the WebView like this: WebView webView = FindViewById<WebView>(Resource.Id.EntityWebView); webView.Settings.JavaScriptEnabled = true; webView.SetWebChromeClient(new WebChromeClient()); webView.Settings.DomStorageEnabled = true; webView.LoadData(getMy.Html(), "text/h
1
 bounty
0
answers
Android. WebView and loadData
10 years ago • alexander.kojemyakin
It's possible to use following method for content's setting of a web-view loadData(String data, String mimeType, String encoding) How to handle the problem with unknown encoding of html data?! Is there a list of encodings?! I know from my college that in my case html comes from DB and is encoded with latin-1. I try to set encoding parameter to latin-1, to ISO-8859-1 / iso-8859-1, but still have problem with displaying of special signs like ä
1 from 2