Android - call TextWatcher for highlighted text

view full story

http://stackoverflow.com – So I'm new to Android development and I'm currently figuring out TextWatcher. What I'm attempting to do is attach my TextWatcher listener to an EditText widget and after the user has put in some text, say "Hello" and he highlights "llo" and types in r, I display the change in a TextView widget. For the above example it will display "llo --> r". Now from what I've read and tried, since the textchangelistener is called every time the user types in something, my code ended up crashing when I ran it on my phone. Is there a way to call the listener only when the highlighted text is changed so (HowTos)