The error in this line is:
if(passwordEditText.getText().ToString()=="your app password")
he should be
if (passwordEditText.getText().ToString().equals("your app password")
When comparing primitive data types (e.g. int, char, boolean) you can use ==,! =, Etc. When comparing objects (e.g. String, Car, etc.) you need to use the .equals() method.
source share