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?
Asked
Active
Viewed 53 times
0

Cœur
- 37,241
- 25
- 195
- 267

Jaume Colom Ferrer
- 334
- 1
- 3
- 13
1 Answers
0
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 :
}}

Prachi
- 3,584
- 2
- 24
- 39