title: Does WebView need a WebViewClient to work?
body: <p>I was going through android tutorials and tried out the <code>WebView</code> example. This is what I ended up with:</p>
  
  <p><strong>WebAppActivity</strong></p>
  
  <pre><code>public class WebAppActivity extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          WebView wv = (WebView) findViewById(R.id.webView1);
          wv.loadUrl("http://www.google.com");
  
      }
  }
  </code></pre>
  
  <p><strong>main.xml</strong></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;/WebView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But instead of loading the page in the application itself, as soon as the application starts the default android browser opens and the page loads in the browser instead of the application. When I press back I return to the application activity which displays a blank screen.</p>
  
  <p>Does anyone know why this is happening?</p>
  
  <p>Edit:</p>
  
  <p><strong>manifest</strong>
  
  </p>
  
  <pre><code>&lt;uses-sdk android:minSdkVersion="7" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:label="@string/app_name"
          android:name=".WebAppActivity" &gt;
          &lt;intent-filter &gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>This was just to show that I have added the INTERNET permission</p>
  
  <p>Edit : </p>
  
  <p>As soon as I add a <code>WebViewClient</code>,</p>
  
  <pre><code>wv.setWebViewClient(new WebViewClient() {});
  </code></pre>
  
  <p>the page loads in the application. Is this expected behaviour? Does an Android WebView <strong>require</strong> a WebViewClient?
  (couldn't find any documentation on it)</p>
  
  <p>Edit : </p>
  
  <p>I noticed that this problem occurs when I install the apk in an emulator which has the Google APIs. On a normal emulator (without the Google APIs) it behaves as expected.</p>