error in findViewById
<p>Hi I'm doing an android gps tutorial and I'm getting an error I don't understand (I'm pretty new to android dev). Im getting the error at</p>

<pre><code>position = (WebView) findViewById(R.id.activity_main);
</code></pre>

<p>where <code>activity_main</code> seems to be the problem. Could somebody explain what the problem is? thanks.</p>

<pre><code>import android.R;
import android.app.Activity;
import android.location.Location;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.Toast;

public class GPSActivity extends Activity
{
    WebView position;
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_item);

        position = (WebView) findViewById(R.id.activity_main);
        position.getSettings().setJavaScriptEnabled(true);

    }

    public void onLocationChanged(Location loc)
    {
        String Text ="My current location is: " + "Latitud="
                + loc.getLatitude() + "Longitud =" + loc.getLongitude();
        Toast.makeText(getApplicationContext(), Text, Toast.LENGTH_LONG).show();

        String url ="http://maps.google.com/staticmap?center="
                + loc.getLatitude() +loc.getLatitude()
                + "&amp;zoom=14&amp;size=512x512&amp;maptype=mobile/&amp;markers="
                + loc.getLatitude() + loc.getLongitude();
        position.loadUrl(url);

    }
}
</code></pre>

<p>the error is activity main cannot be resolved or is not a field, I think the id is in activity_main but correct me if I'm wrong, here it is                                                            </p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" &gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
    /&gt;
    &lt;Webview
     android:id="@+id/webview"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     /&gt;

&lt;/LinearLayout&gt;
</code></pre>
