I need to capture the event of an EditText to erase the results I show on the screen.
I need to capture the event of an EditText to erase the results I show on the screen.
Your question is not very explicit but if we are talking about android you can capture the text change event like this:
EditText textValue = ....
textValue.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
//System.out.println(s.toString() + " " + start + " " + count + " " + after);
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
//System.out.println(s.toString() + " " + start + " " + count);
}
@Override
public void afterTextChanged(Editable s) {
//System.out.println(s.toString());
}
});