From b99d136f255d9f9270d4d1e224bd48030a9e6fb2 Mon Sep 17 00:00:00 2001
From: Trevor Johns
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
android:orientation="vertical">
<WebView
@@ -69,7 +69,7 @@ private class HelloWebViewClient extends WebViewClient {
onCreate() method, set an instance of the HelloWebViewClient
as our WebViewClient:
- webview.setWebViewClient(new WebViewClientDemo());+
webview.setWebViewClient(new HelloWebViewClient());
This line should immediately follow the initialization of our WebView object.
What we've done is create a WebViewClient that will load any URL selected in our