mercredi 19 août 2015

Whats wrong with my query?

Can anyone see any errors in this code? I've checked to make sure the data has been written to the database. Every time I click the button it gives me the "Incorrect Password" text. It's probably something stupid that I'm overlooking. Any help is appreciated.

public void buttonWork() {
    button_credCheck.setOnClickListener(new View.OnClickListener() {
        String rpq = regPwdQuery().toString();
        String passInputStr = editText_pwdInput.getText().toString();

        @Override
        public void onClick(View v) {
            if (passInputStr == rpq) {
                Intent myIntent = new Intent(LogInActivity.this, FindInfoActivity.class);
                startActivity(myIntent);

            } else {
                Toast.makeText(LogInActivity.this, "Incorrect Password", Toast.LENGTH_LONG).show();
            }
        }
    });
}

Aucun commentaire:

Enregistrer un commentaire