title: Iam Getting b.setOnClickListener(new OnClickListener() ERROR
body: <p>I am creating a simple app in eclipse but I am getting error at this line</p>
  
  <pre><code>b.setOnClickListener(new OnClickListener() 
  </code></pre>
  
  <p>please have a look at the entire program</p>
  
  <pre><code>package com.example.activity2;
  
  public class Main extends Activity {
      //Called when the activity is first created. */
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
  
      Button b = (Button) findViewById(R.id.button1);
      b.setOnClickListener(new OnClickListener() {
  
      public void onClick(View v) {
          // TODO Auto-generated method stub
  
      }
  });
  }
  }
  </code></pre>
  
  <p>this was the program and iam getting this error..please help me in this issue.</p>