0

How can I check if what is being typed into a edit text is equal to what I have is a variable

For instance I have a string variable that has the words ("hello there") In it how could I check if a person has typed the words hello there in the edit text

19th Apr 2018, 9:24 PM
Adrian Williamson
Adrian Williamson - avatar
1 Odpowiedź
+ 2
https://developer.android.com/reference/android/widget/EditText.html#getText() EditText has a getText() method, so you could compare on that
19th Apr 2018, 10:39 PM
Dan Walker
Dan Walker - avatar