I am trying to create a login page to my Android App. I have 2 editview and a button. I am using a static user credentials to login. when I run the app, and try to login with the correct username and password, it gives incorrect credential message.

here is my code, it is a very simple piece of code

```
public void sendMessage(View view) {

    EditText user_name = (EditText)findViewById(R.id.txt_username);
    EditText password =(EditText)findViewById(R.id.txt_password);

    if(user_name.getText().toString()=="rotanet" && password.getText().toString()=="rotanet"){
        Intent intent = new Intent(this, MainActivity.class);
        startActivity(intent);
        TextView lbl_error = (TextView)findViewById(R.id.lbl_error);
        lbl_error.setText("");
    }
    else{
        TextView lbl_error = (TextView)findViewById(R.id.lbl_error);
        lbl_error.setText("wrong credentials!");
    }
}

```