android button event listener does not work
<p>I know this is the basic stuff but I couldn't figure it out. Here is my code:</p>

<pre><code>public class test extends Activity{

     private static final String TAG = "test";
     private Button Test;


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

        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Log.v(TAG,"onCreate is called.");

        this.setContentView(R.layout.main);
        Test= (Button)this.findViewById(R.id.Test);


        Test.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {

                Log.v(TAG, "onClick Entered.");
                // Perform action on click
            }
        });

        setContentView(R.layout.main);
    }
}
</code></pre>

<p>I can see the first log "OnCreate" but the button click event listener doesn't seem 
to work because I can't see "OnClick Entered". Where did I do wrong?</p>

<p>Thanks</p>
