Well, I\'m trying to create an intent on a \"login.java\" the code is :
Button btEntrar = (Button) findViewById(R.id.btnSingIn); btEntrar.setOnClickLis
updated code in to your activity
Button btEntrar = (Button) findViewById(R.id.btnSingIn); btEntrar.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i; i = new Intent(login.this, MainActivity.class); startActivity(i); } });