You can only do something like that. This solution load HTML from a String variable:
String html = "<html><body>Hello, World!</body></html>";
String mime = "text/html";
String encoding = "utf-8";
WebView myWebView = (WebView)this.findViewById(R.id.myWebView);
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.loadDataWithBaseURL(null, html, mime, encoding, null);
EDIT: try to set the first parameter (the baseURL) of loadDataWithBaseURL() for your needs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…