Reputation: 334
My intention is to put an Edittext
, and a Button
below, and when the user put an specific word and click the button, the value is correct, and all the other different words are wrong.. How to identify it with codes?
Upvotes: 0
Views: 55
Reputation: 3672
btn.onClickListiner(this);
@Override
public void onClick(View v) {
if (v == btn) {
// check word
String word = editText.getText().toString(); // don't forget "toString()" .
// checking word below :
}}
Upvotes: 0