Simple username password code in android not working [duplicate]
问题 This question already has answers here : String comparison - Android (16 answers) Closed 2 years ago . In android studio im making a simple username and password code that toasts something if both the values in the username and password edit text views are certain values ("cake" and "robot" for instance) however when I test it and enter the correct username and password values im being told that I have entered the wrong match? Here is the main activity public class MainActivity extends