title: android there is no event when clicking a button
body: <p>I have an activity which has a button, I want when press the button to toast something, I did that like this :</p>
  
  <pre><code>public class myActivity extends Activity implements OnClickListener {
  
      EditText nameEditText;
      Button okButton;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          nameEditText = (EditText) findViewById(R.id.editText);
          okButton = (Button) findViewById(R.id.button);
      }
  
      @Override
      public void onClick(View v) {
          // TODO Auto-generated method stub
          switch (v.getId()) {
          case R.id.button:
              Toast.makeText(myActivity.this, "Pressed", Toast.LENGTH_LONG)
                      .show();
              break;
  
          default:
              break;
          }
      }
  }
  </code></pre>
  
  <p>where is the wrong?</p>
  
  <p>thank you </p>