I’m trying to add a TextWatcher editbox.afterTextChanged listenering to my “Main” activity where I have already used an onFocusListener. I receive this error message on the line where I declare the Main class:
public class Main extends Activity implements OnFocusChangeListener, TextWatcher{
the listener is set to an edittext box with:
etBox1.addTextChangedListener(this);
and the code to implement with the catch is:
public void afterTextChanged(Editable s)
{ doMyCalcs(); }
Any idea where I went wrong?
You implement all three methods in TextWatcher.
You only implemented the first one.