...
Code Block | ||
---|---|---|
| ||
WebView webView = new WebView(this); setContentView(webView); ... class JsObject { private String sensitiveInformation; ... public String toString() { return sensitiveInformation; } } webView.addJavascriptInterface(new JsObject(), "injectedObject"); webView.loadData("", "text/html", null); webView.loadUrl("http://www.example.com"); |
...