Problem with setOnClickListener - stopped application unexpectedly
<p>I am fighting whole day with error "The application  has stopped unexpectedly. Please try again." This problem is caused by method "setOnClickListener". I am working with this component following way:</p>

<pre><code>public class main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button nnumb1 = ((Button)this.findViewById(R.id.numb1)); 
        nnumb1.setOnClickListener((OnClickListener) this);

        Button nnumb2 = ((Button)this.findViewById(R.id.numb2)); 
        nnumb2.setOnClickListener((OnClickListener) this);

    }

    public void onClickHandler(View v){
        setTitle("???");
        String pressed = null;

        switch (v.getId()) {
            case R.id.nnumb1: 
                pressed="number one";
             break;
            case R.id.nnumb2:
                pressed="number two";
             break;
         }

        new AlertDialog.Builder(this).setTitle("Info").setMessage(pressed).setNeutralButton("Okey", null).show();       
        }
}
</code></pre>

<p>ID of button in main.xml are called "numb1" and "numb2".
It looks the problem is one the first 5 lines -- but I don't know, how to solve it... I will be glad for any hints...</p>

<p>Thanks!</p>
