am 2ca4d8b7: Merge "Fixing bugs in HelloWebView tutorial on developer.android.com." into honeycomb

* commit '2ca4d8b7b97f20c8ad6897fc8c0c95616c0e80c6':
  Fixing bugs in HelloWebView tutorial on developer.android.com.
This commit is contained in:
Trevor Johns
2011-01-20 17:04:40 -08:00
committed by Android Git Automerger

View File

@@ -12,8 +12,8 @@ we'll create a simple Activity that can view web pages.</p>
<pre> <pre>
&lt;?xml version="1.0" encoding="utf-8"?> &lt;?xml version="1.0" encoding="utf-8"?>
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="fill_parent"
android:orientation="vertical"> android:orientation="vertical">
&lt;WebView &lt;WebView
@@ -69,7 +69,7 @@ private class HelloWebViewClient extends WebViewClient {
<li>Now, in the <code>onCreate()</code> method, set an instance of the <code>HelloWebViewClient</code> <li>Now, in the <code>onCreate()</code> method, set an instance of the <code>HelloWebViewClient</code>
as our WebViewClient: as our WebViewClient:
<pre>webview.setWebViewClient(new WebViewClientDemo());</pre> <pre>webview.setWebViewClient(new HelloWebViewClient());</pre>
<p>This line should immediately follow the initialization of our WebView object.</p> <p>This line should immediately follow the initialization of our WebView object.</p>
<p>What we've done is create a WebViewClient that will load any URL selected in our <p>What we've done is create a WebViewClient that will load any URL selected in our