title: OnClickListener crashing application
body: <p>The following code is crashing my application on startup.
  It compiles just fine but just crashes.
  Without this code it runs perfectly.</p>
  
  <p>This is the code</p>
  
  <pre><code>private OnClickListener listentest = new OnClickListener() {
      public void onClick(View v) {
        // do something when the button is clicked
      }
  };
  
      public void onCreate(Bundle savedInstanceState) {
      Button teamsbtn = (Button)findViewById(R.id.teams);
    //  teamsbtn.setOnClickListener(listentest); 
       }
  </code></pre>
  
  <p>Thanks,
  Andrew</p>