Loading core/java/android/webkit/WebView.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -98,7 +98,7 @@ import java.util.Map; * invoke the Browser application with a URL Intent rather than show it * invoke the Browser application with a URL Intent rather than show it * with a WebView. For example: * with a WebView. For example: * <pre> * <pre> * Uri uri = Uri.parse("http://www.example.com"); * Uri uri = Uri.parse("https://www.example.com"); * Intent intent = new Intent(Intent.ACTION_VIEW, uri); * Intent intent = new Intent(Intent.ACTION_VIEW, uri); * startActivity(intent); * startActivity(intent); * </pre> * </pre> Loading @@ -116,7 +116,7 @@ import java.util.Map; * <pre> * <pre> * // Simplest usage: note that an exception will NOT be thrown * // Simplest usage: note that an exception will NOT be thrown * // if there is an error loading this page (see below). * // if there is an error loading this page (see below). * webview.loadUrl("http://slashdot.org/"); * webview.loadUrl("https://example.com/"); * * * // OR, you can also load from an HTML string: * // OR, you can also load from an HTML string: * String summary = "<html><body>You scored <b>192</b> points.</body></html>"; * String summary = "<html><body>You scored <b>192</b> points.</body></html>"; Loading Loading @@ -175,7 +175,7 @@ import java.util.Map; * } * } * }); * }); * * * webview.loadUrl("http://developer.android.com/"); * webview.loadUrl("https://developer.android.com/"); * </pre> * </pre> * * * <h3>Zoom</h3> * <h3>Zoom</h3> Loading Loading @@ -2705,7 +2705,7 @@ public class WebView extends AbsoluteLayout * <p>Example2: an IFRAME tag. * <p>Example2: an IFRAME tag. * * * <pre class="prettyprint"> * <pre class="prettyprint"> * <iframe src="http://example.com/login"/> * <iframe src="https://example.com/login"/> * </pre> * </pre> * * * <p>Would map to: * <p>Would map to: Loading @@ -2714,7 +2714,7 @@ public class WebView extends AbsoluteLayout * int index = structure.addChildCount(1); * int index = structure.addChildCount(1); * ViewStructure iframe = structure.newChildFor(index); * ViewStructure iframe = structure.newChildFor(index); * iframe.setHtmlInfo(child.newHtmlInfoBuilder("iframe") * iframe.setHtmlInfo(child.newHtmlInfoBuilder("iframe") * .addAttribute("url", "http://example.com/login") * .addAttribute("url", "https://example.com/login") * .build()); * .build()); * </pre> * </pre> */ */ Loading Loading
core/java/android/webkit/WebView.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -98,7 +98,7 @@ import java.util.Map; * invoke the Browser application with a URL Intent rather than show it * invoke the Browser application with a URL Intent rather than show it * with a WebView. For example: * with a WebView. For example: * <pre> * <pre> * Uri uri = Uri.parse("http://www.example.com"); * Uri uri = Uri.parse("https://www.example.com"); * Intent intent = new Intent(Intent.ACTION_VIEW, uri); * Intent intent = new Intent(Intent.ACTION_VIEW, uri); * startActivity(intent); * startActivity(intent); * </pre> * </pre> Loading @@ -116,7 +116,7 @@ import java.util.Map; * <pre> * <pre> * // Simplest usage: note that an exception will NOT be thrown * // Simplest usage: note that an exception will NOT be thrown * // if there is an error loading this page (see below). * // if there is an error loading this page (see below). * webview.loadUrl("http://slashdot.org/"); * webview.loadUrl("https://example.com/"); * * * // OR, you can also load from an HTML string: * // OR, you can also load from an HTML string: * String summary = "<html><body>You scored <b>192</b> points.</body></html>"; * String summary = "<html><body>You scored <b>192</b> points.</body></html>"; Loading Loading @@ -175,7 +175,7 @@ import java.util.Map; * } * } * }); * }); * * * webview.loadUrl("http://developer.android.com/"); * webview.loadUrl("https://developer.android.com/"); * </pre> * </pre> * * * <h3>Zoom</h3> * <h3>Zoom</h3> Loading Loading @@ -2705,7 +2705,7 @@ public class WebView extends AbsoluteLayout * <p>Example2: an IFRAME tag. * <p>Example2: an IFRAME tag. * * * <pre class="prettyprint"> * <pre class="prettyprint"> * <iframe src="http://example.com/login"/> * <iframe src="https://example.com/login"/> * </pre> * </pre> * * * <p>Would map to: * <p>Would map to: Loading @@ -2714,7 +2714,7 @@ public class WebView extends AbsoluteLayout * int index = structure.addChildCount(1); * int index = structure.addChildCount(1); * ViewStructure iframe = structure.newChildFor(index); * ViewStructure iframe = structure.newChildFor(index); * iframe.setHtmlInfo(child.newHtmlInfoBuilder("iframe") * iframe.setHtmlInfo(child.newHtmlInfoBuilder("iframe") * .addAttribute("url", "http://example.com/login") * .addAttribute("url", "https://example.com/login") * .build()); * .build()); * </pre> * </pre> */ */ Loading