The method startActivity(Intent) is undefined for the type MyWebViewClient
<p>I'm trying to use the Android tutorial to build an app that loads a web view to a mobile site that I built.  The problem is with following the tutorial the <code>startActivity</code> function is undefined and the Android tutorial isn't helping.  I've done Ctrl+Shift+O to verify all the proper modules are loaded.</p>

<pre><code>package com.mysite;

import android.content.Intent;
import android.net.Uri;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MyWebViewClient extends WebViewClient {
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        if (Uri.parse(url).getHost().equals("www.mysite.com")) {
            // This is my web site, so do not override; let my WebView load the page
            return false;
        }
        // Otherwise, the link is not for a page on my site, so launch another Activity that handles URLs
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
        startActivity(intent);
        return true;
    }
}
</code></pre>

<p><strong>Update</strong></p>

<p>Ok, now my code reads: </p>

<pre><code>package com.myapp;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class MyApp extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //init webview
        WebView DCWebView = (WebView) findViewById(R.id.webview);
        WebSettings webViewSettings = DCWebView.getSettings();

        //when a link is clicked, use the WebView instead of opening a new browser
        DCWebView.setWebViewClient(new MyWebViewClient() {
            @Override
            public void launchExternalBrowser(String url) {
                Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
                startActivity(intent);
            }
        });

        //enable javascript
        webViewSettings.setJavaScriptEnabled(true);

    }
}
</code></pre>

<p>But I'm showing 2 errors:</p>

<pre><code>Description Resource    Path    Location    Type
The type new MyWebViewClient(){} must implement the inherited abstract method MyWebViewClient.launchExternalBrowser()   DealClippings.java  /MyApp/src/com/myapp    line 21 Java Problem

The method launchExternalBrowser(String) of type new MyWebViewClient(){} must override or implement a supertype method  MyApp.java  /DealClippings/src/com/myapp    line 23 Java Problem
</code></pre>
