问题描述:

I have got the error above and do not know where I'm going wrong.

The code:

public void onClick(View v) {

if (checkPassword()) {

case R.id.but_login:

Intent i = new Intent(this, MainActivity.class);

startActivity(i);

break;

}else{

editFail.setError("username/password is incorrect. Enter it again or try later.");

}

}

相关阅读:
Top