title: Error using onClickListener (Intent)
body: <p>Well, I'm trying to create an intent on a "login.java" the code is : </p>
  
  <pre><code> Button btEntrar = (Button) findViewById(R.id.btnSingIn);
      btEntrar.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Intent i;
              i = new Intent(this, MainActivity.class);
              startActivity(i);
  
  
          }
      });
  </code></pre>
  
  <p>But it says that I can't go to the other activity saying this : </p>
  
  <blockquote>
    <p>Error:(24, 21) error: no suitable constructor found for Intent(,Class)
        constructor Intent.Intent(String,Uri) is not applicable
        (argument mismatch;  cannot be converted to String)
        constructor Intent.Intent(Context,Class) is not applicable
        (argument mismatch;  cannot be converted to Context)</p>
  </blockquote>
  
  <p>and...</p>
  
  <blockquote>
    <p>Error:Execution failed for task ':app:compileDebugJava'.
    Compilation failed; see the compiler error output for details.</p>
  </blockquote>