Merge change 2855 into donut

* changes:
  Add a new method to load html data into the WebView.
This commit is contained in:
Android (Google) Code Review
2009-06-01 15:22:18 -07:00

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.