Lines Matching full:webkit
8 <li>Use {@link android.webkit.WebView} to display web pages in your Android application
31 <li>{@link android.webkit.WebView}</li>
32 <li>{@link android.webkit.WebSettings}</li>
33 <li>{@link android.webkit.WebViewClient}</li>
40 you can do it using {@link android.webkit.WebView}. The {@link android.webkit.WebView} class is an
43 browser, such as navigation controls or an address bar. All that {@link android.webkit.WebView}
46 <p>A common scenario in which using {@link android.webkit.WebView} is helpful is when you want to
49 that contains a {@link android.webkit.WebView}, then use that to display your document that's
52 <p>Another scenario in which {@link android.webkit.WebView} can help is if your application provides
55 find that it's easier to build a {@link android.webkit.WebView} in your Android application that
59 and then implement a {@link android.webkit.WebView} in your Android application that loads the web
62 <p>This document shows you how to get started with {@link android.webkit.WebView} and how to do some
70 <p>To add a {@link android.webkit.WebView} to your Application, simply include the {@code
72 {@link android.webkit.WebView} fills the screen:</p>
83 <p>To load a web page in the {@link android.webkit.WebView}, use {@link
84 android.webkit.WebView#loadUrl(String) loadUrl()}. For example:</p>
102 <p>That's all you need for a basic {@link android.webkit.WebView} that displays a web page.</p>
109 <p>If the web page you plan to load in your {@link android.webkit.WebView} use JavaScript, you
110 must enable JavaScript for your {@link android.webkit.WebView}. Once JavaScript is enabled, you can
116 <p>JavaScript is disabled in a {@link android.webkit.WebView} by default. You can enable it
118 android.webkit.WebSettings} attached to your {@link android.webkit.WebView}. You can retrieve {@link
119 android.webkit.WebSettings} with {@link android.webkit.WebView#getSettings()}, then enable
120 JavaScript with {@link android.webkit.WebSettings#setJavaScriptEnabled(boolean)
131 <p>{@link android.webkit.WebSettings} provides access to a variety of other settings that you might
133 that's designed specifically for the {@link android.webkit.WebView} in your Android application,
135 custom user agent string with {@link android.webkit.WebSettings#setUserAgentString(String)
142 android.webkit.WebView} in your Android
148 android.webkit.WebView#addJavascriptInterface(Object,String) addJavascriptInterface()}, passing it
182 <p>You can bind this class to the JavaScript that runs in your {@link android.webkit.WebView} with
183 {@link android.webkit.WebView#addJavascriptInterface(Object,String) addJavascriptInterface()} and
192 android.webkit.WebView}. At this point, your web application has access to the {@code
207 android.webkit.WebView} automatically makes it
216 android.webkit.WebView#addJavascriptInterface(Object,String) addJavascriptInterface()} allows
218 security issue. When the HTML in the {@link android.webkit.WebView} is untrustworthy (for example,
222 {@link android.webkit.WebView#addJavascriptInterface(Object,String) addJavascriptInterface()} unless
223 you wrote all of the HTML and JavaScript that appears in your {@link android.webkit.WebView}. You
225 navigate to other web pages that are not your own, within your {@link android.webkit.WebView}
236 <p>When the user clicks a link from a web page in your {@link android.webkit.WebView}, the default
240 android.webkit.WebView},
241 so links open within your {@link android.webkit.WebView}. You can then allow the user to navigate
243 android.webkit.WebView}.</p>
246 android.webkit.WebViewClient} for your {@link android.webkit.WebView}, using {@link
247 android.webkit.WebView#setWebViewClient(WebViewClient) setWebViewClient()}. For example:</p>
251 myWebView.{@link android.webkit.WebView#setWebViewClient(WebViewClient) setWebViewClient}(new WebViewClient());
254 <p>That's it. Now all links the user clicks load in your {@link android.webkit.WebView}.</p>
257 android.webkit.WebViewClient} that overrides the {@link
258 android.webkit.WebViewClient#shouldOverrideUrlLoading(WebView,String)
264 public boolean {@link android.webkit.WebViewClient#shouldOverrideUrlLoading(WebView,String) shouldOverrideUrlLoading}(WebView view, String url) {
277 <p>Then create an instance of this new {@link android.webkit.WebViewClient} for the {@link
278 android.webkit.WebView}:</p>
282 myWebView.{@link android.webkit.WebView#setWebViewClient(WebViewClient) setWebViewClient}(new MyWebViewClient());
286 {@link android.webkit.WebViewClient#shouldOverrideUrlLoading(WebView,String)
289 loading (it allows the {@link android.webkit.WebView} to load the URL as usual). If the URL host
299 <p>When your {@link android.webkit.WebView} overrides URL loading, it automatically accumulates a
302 android.webkit.WebView#goBack()} and {@link android.webkit.WebView#goForward()}.</p>
311 if ((keyCode == KeyEvent.KEYCODE_BACK) && myWebView.{@link android.webkit.WebView#canGoBack() canGoBack}()) {
312 myWebView.{@link android.webkit.WebView#goBack() goBack}();
321 <p>The {@link android.webkit.WebView#canGoBack()} method returns
323 android.webkit.WebView#canGoForward()} to check whether there is a forward history. If you don't
325 android.webkit.WebView#goBack()} or {@link android.webkit.WebView#goForward()} does nothing.</p>