I have this code and to me it seems like the logic is correct. When the value.toString() is entered it prints out 0123456789 just like it should because that is the value I entered in the editText field. Is there something simple that I am missing here or is this fine and I will have to look further afield.
Editable value = input.getText();
Log.i("Password entered: ", value.toString());
if(value.toString() == "0123456789"){
Log.i("Password entered: ", "yay it is working!");
} else {
Log.i("Password entered: ", "it is incorrect");
}