Detect changes in EditText (TextWatcher ineffective)
I need to detect text changes in an EditText. I've tried TextWatcher, but it doesn't work in a way I would expect it to. Take the onTextChanged method: public void onTextChanged( CharSequence s, int start, int before, int count ) Say I have the text "John" in already in the EditText. If press another key, "e", s will be "Johne", start will be 0, before will be 4, and count will be 5. The way I would expect this method to work would be the difference between what the EditText previously was, and what it's about to become. So I would expect: s = "Johne" start = 4 // inserting character at index