Add a new method to load html data into the WebView.

This commit is contained in:
Ramanan Rajeswaran
2009-06-01 14:43:44 -07:00
parent 11b1675a93
commit 8cb6617107

View File

@@ -130,7 +130,14 @@ public class GoogleWebContentHelper {
mWebView.loadUrl(mSecureUrl);
return this;
}
public GoogleWebContentHelper loadDataWithFailUrl(String base, String data,
String mimeType, String encoding, String failUrl) {
ensureViews();
mWebView.loadDataWithBaseURL(base, data, mimeType, encoding, failUrl);
return this;
}
/**
* Helper to handle the back key. Returns true if the back key was handled,
* otherwise returns false.