WebView

  1. Home
  2. chevron_right
  3. WebView

Android – Load a String into WebView

Snippets, Solutions
To load html data from a String into a WebView, you can use the following method: yourWebView.loadDataWithBaseURL("x-data://base", stringToLoadInWebView, "text/html", "UTF-8", null); Note that the UTF-8 charset might be different for…