title: Implement OnClickListener
body: <p>I'm reading an Android's tutorial and I have a class that implements abstract class OnClickListener. The problem is that in tutorial when it override method onClick,this has only one parameter but my eclipse show me an error because the onClick method need two parameters.</p>
  
  <p>Below my wrong code by tutorial,how Can I fix it?</p>
  
  <pre><code>public class MainActivity extends Activity implements OnClickListener {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      final Button button = (Button) findViewById(R.id.form_button);
      button.setOnClickListener((android.view.View.OnClickListener) this);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  
  public void onClick(View v) {
      // TODO Auto-generated method stub
      switch (v.getId()) {
      case R.id.form_button:
          final EditText edit_name = (EditText) findViewById(R.id.edit_name);
          final EditText edit_lastname = (EditText) findViewById(R.id.edit_lastname);
          Bundle bundle = new Bundle();
          bundle.putString("name", edit_name.getText().toString());
          bundle.putString("lastname", edit_lastname.getText().toString());
          Intent form_intent = new Intent(getApplicationContext(), Form.class);
          form_intent.putExtras(bundle);
          startActivity(form_intent);
          break;
      }
  
  }
  
  }
  </code></pre>