Implementing Text Watcher for EditText
Try like this. EditText et = (EditText)findViewById(R.id.editText); Log.e(“TextWatcherTest”, “Set text xyz”); et.setText(“xyz”); et.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void afterTextChanged(Editable s) { Log.e(“TextWatcherTest”, “afterTextChanged:\t” +s.toString()); } });