setContentView(R.layout.main); main is showing error
<p>here is coding </p>

<pre><code>package todo.list;

import android.R;
import android.R.layout;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;


public class TodolistActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button btnSave = (Button)this.findViewById(R.id.button1);
        final EditText txtEdit=(EditText)this.findViewById(R.id.edit);
        btnSave.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                // TODO Auto-generated method stub
String message = txtEdit.getText().toString();
Toast.makeText(TodolistActivity.this, message, 20).show();
            }
        });

    }

}
</code></pre>

<p>i import all classes but still its showing an error with connection to my main.xml
Kindly reply ASAP
        setContentView(R.layout.main); main is showing error MAIN CAN NOT BE RESOLVED OR IS NOT A FIELD</p>
