Android WebView: Web page not available

Just a quick note in order to save someone else searching for a solution to this problem. When you want to display HTML content in an Android WebView do it like this: String html = "my >b<HTML content>/b<. 100% cool."; WebView webView = (WebView) findViewById(R.id.myWebView); webView.loadData(">?xml version=\"1.0\" encoding=\"UTF-8\" ?<" + html.replace("%","%25"), "text/html", "UTF-8"); If you […]

Posted in web