EditText textInput = (EditText) findViewById(R.id.editText4);
textInput .addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable s) {
if(s.toString().equals("test")) {
}
}
public void beforeTextChanged(CharSequence s, int start, int count, int after){
}
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
});