need help in loading activity
<p>I have created following activity</p>

<pre><code> package com.ali.test;

 import android.app.Activity;
 import android.content.Intent;

 import android.os.Bundle;
 import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

 public class Test extends Activity implements OnClickListener {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
/*
        OnClickListener onClickListener = new OnClickListener() {


        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub
            Intent i = new Intent(this, Second.class);
            startActivityForResult(i, ACTIVITY_CREATE);

        }
    };
    */

    Button button = (Button) findViewById(R.id.button1);
   button.setOnClickListener(this);

}

@Override
public void onClick(View arg0) {
    // TODO Auto-generated method stub
    startActivity(new Intent(this, Second.class));

}
</code></pre>

<p>}</p>

<p>and want to load</p>

<pre><code>                 package com.ali.test;

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

   public class Second extends Activity{
 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 }
  }
</code></pre>

<p>but when i press the buttons app closes unexeptionaly</p>
