title: multiple markers at this line
body: <p>I get the below error in the line <code>this.viewcam.setOnClickListerner(new view.OnClickListerner())</code>.<br>
  I get this error in eclipse. </p>
  
  <p>Multiple markers at this line</p>
  
  <ul>
  <li>The method <code>setOnClickListener(View.OnClickListener)</code> in the type <code>View</code> is not applicable for the arguments (<code>new OnClickListener(){}</code>)</li>
  <li>view cannot be resolved to a type</li>
  </ul>
  
  <pre class="lang-java prettyprint-override"><code>    public class Main extends Activity
      implements View.OnClickListener
      {
      Button viewcam;
      EditText editTextIp;
      EditText login;
      EditText passwd;
      public void onCreate(Bundle paramBundle)
      {
        super.onCreate(paramBundle);
        setContentView(R.layout.main);
        this.viewcam = ((Button)findViewById(R.id.viewcam));
        this.viewcam.setOnClickListener(new view.OnClickListener() {
    public void onClick(View v) {
    // TODO Auto-generated method stub
      if (v == this.viewcam)
        {
          Log.i("login", this.login.getText().toString());
          Log.i("Passwd", this.passwd.getText().toString());
          Intent localIntent1 = new Intent(v.getContext(), MjpegSample.class);
          Log.i("My ip", this.editTextIp.getText().toString());
          localIntent1.putExtra("ip", "http://" +                 this.editTextIp.getText().toString() + "/");
          localIntent1.putExtra("user", this.login.getText().toString());
          localIntent1.putExtra("passwd", this.passwd.getText().toString());
          startActivityForResult(localIntent1, 1000);
        }     }
                 });
   this.editTextIp = ((EditText)findViewById(R.id.ip));
   this.login = ((EditText)findViewById(R.id.username));
   this.passwd = ((EditText)findViewById(R.id.password));
  
  }
    }
  </code></pre>