Button loginbuttonbutton = (Button) findViewById(R.id.btnLogin);
loginbuttonbutton.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
        if(inputEmail.getText().toString() == "EdEffort@ncat.edu" &&
           inputPassword.getText().toString() == "Steelers") {
            Intent myIntent = new Intent(view.getContext(),
                                         Host_Setting_PageActivity.class);
            startActivityForResult(myIntent, 0);
        } else {
            System.out.println("Username or password is incorrect");
        }
    }
});
That is my code and the application actually start but whenever I hit the login button the application closes.
 
     
     
     
     
     
    