title: Android - WebView = Web page not available
body: <p>When using a <code>WebView</code> view in my app, no matter what page I force it to visit, it says <strong>Web page not found</strong>. Here is my code:</p>
  
  <p><code>MainActivity.java</code></p>
  
  <pre><code>package com.testing.webview;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebSettings;
  import android.webkit.WebView;
  
  public class MainActivity extends Activity
  {
      @Override
      public void onCreate( Bundle savedInstanceState )
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          WebView webView = (WebView) findViewById(R.id.webView1);
          WebSettings webSettings = webView.getSettings();
          webSettings.setBuiltInZoomControls(true);
          webView.loadUrl("http://www.google.com");        
      }
  }
  </code></pre>
  
  <p><code>main.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
      &lt;WebView
          android:id="@+id/webView1"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" /&gt;                
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>It's very basic code as you can see. There is indeed an internet connection as I can open the normal Browser app and visit any webpage like normal.</p>