button does not react on click despite having implemented click listeneers
<p>I am scratching my head over this and really can't think what I did wrong. I have implemented a button in my main activity layout as per below:</p>

<pre><code>&lt;Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:text="@string/calculate"
    android:textSize="13sp" /&gt;
</code></pre>

<p>in my main activity I hooked this button to a button listener as per below:</p>

<pre><code>Button button = (Button) findViewById(R.id.button1);        
button.setOnClickListener(buttonListener);
</code></pre>

<p>which calls my button listener:</p>

<pre><code>private OnClickListener buttonListener = new OnClickListener() {

    @Override
    public void onClick(View v) {
        Intent intent = new Intent (MainActivity.this, ResultsActivity.class);
        MainActivity.this.startActivity(intent);

    }
};
</code></pre>

<p>on click the button fails to start the other activity, which I have duly declared in the Android manifest...</p>

<p>when I tap on the button I can in debug mode I can see the following entry into the LogCat:</p>

<pre><code>04-27 19:06:31.402: D/GestureDetector(25925): [Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 3 mFalseSizeCnt:0
</code></pre>

<p>Any idea on this problem? any help will be much appreciated.</p>
