summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorRamanan Rajeswaran <ramanan@google.com>2009-06-01 14:43:44 -0700
committerRamanan Rajeswaran <ramanan@google.com>2009-06-01 14:43:44 -0700
commit8cb6617107475c8b579f3bfbef24825c86ce32c5 (patch)
treedbea119f31ef001c5a13a0f1fefda4794de58345 /core/java/com
parent11b1675a9348adabd9370ac01ae9c614ca4af384 (diff)
downloadframeworks_base-8cb6617107475c8b579f3bfbef24825c86ce32c5.zip
frameworks_base-8cb6617107475c8b579f3bfbef24825c86ce32c5.tar.gz
frameworks_base-8cb6617107475c8b579f3bfbef24825c86ce32c5.tar.bz2
Add a new method to load html data into the WebView.
Diffstat (limited to 'core/java/com')
-rw-r--r--core/java/com/google/android/util/GoogleWebContentHelper.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/com/google/android/util/GoogleWebContentHelper.java b/core/java/com/google/android/util/GoogleWebContentHelper.java
index 2911420..3cdf855 100644
--- a/core/java/com/google/android/util/GoogleWebContentHelper.java
+++ b/core/java/com/google/android/util/GoogleWebContentHelper.java
@@ -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.