I had the same issue and I fixed it setting the WebChromeClient for the WebView and load the URL using loadDataWithBaseURL
WebView wv = (WebView)findViewById(R.id.webview);
wv.setWebChromeClient(new WebChromClient());
WebViewClient wvclient = new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Intent intent = new Intent(getApplicationContext(),
YourActivity.class);
String message = url;
startActivity(intent);
return true;
}
};
wv.setWebViewClient(wvclient);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NORMAL);
wv.loadDataWithBaseURL("http://www.yoursite.com", result,
"text/html", "UTF-8", null);