Eclipse does not recognize some coda-parts
<p>Sorry for the unspecific title, but I do not know how to formulate it. </p>

<p>I have the following problem:</p>

<p>I Have installed Android SDK on my laptop and on another PC. I have to work on both PC. When transport a Project form my Laptop, I sometimes get the problem, that on the PC, parts of the code get the XXX cannot be resolved to a type.</p>

<p>Example: The Code is not so interesting, the problem is in the line, "AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);"</p>

<pre><code>package com.example.alertdialog;

import android.app.Activity;
import android.content.DialogInterface;
import android.os.Bundle;

public class AlertDialog extends Activity {
    /** Called when the activity is first created. */
    public static final int DIALOG_DELETE_YES_NO_MESSAGE = 1;
    public static final int DIALOG_DELETE_ALL_MESSAGE = 2;

    public class ExampleApp extends Activity {
            @Override
        protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);
    alt_bld.setMessage("Do you want to close this window ?")
    .setCancelable(false)
    .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int id) {
    // Action for 'Yes' Button
    }
    })
    .setNegativeButton("No", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int id) {
    //  Action for 'NO' Button
    dialog.cancel();
    }
    });
    AlertDialog alert = alt_bld.create();
    // Title for AlertDialog
    alert.setTitle("Title");
    // Icon for AlertDialog
    alert.setIcon(R.drawable.icon);
    alert.show();
    }
}
</code></pre>

<p>}</p>

<p>In another case, extend a class from a BaseAdapter. On the Laptop, I can overwrite functions like "getVIew", on the PC, there is an Error if I use "@Override".</p>

<p>This is the error I get: "Multiple markers at this line
    - implements android.widget.Adapter.getView
    - The method getView(int, View, ViewGroup) of type ImageAdapter must override a superclass 
     method"</p>

<p>Any ideas as to what the problem is?</p>
