title: Android EditText listener for cursor position change
body: <p>I have a dialog with EditText in it. The EditText is already populated when it is created.  When the user places the cursor on or near certain parts of the text a Toast will pop up.  </p>
  
  <p>My problem is listening for changes in cursor position.  Another <a href="http://stackoverflow.com/questions/3652569/android-edittext-listener-for-cursor-position-change">post</a> asks the same question and the accepted solution was</p>
  
  <blockquote>
    <p>You can override onSelectionChanged (int selStart, int selEnd) to get notified about selection changes. If the cursor is moved, this is called as well (in this case selStart == selEnd)</p>
  </blockquote>
  
  <p><a href="http://developer.android.com/reference/android/widget/TextView.html#onSelectionChanged%28int,%20int%29" rel="noreferrer">onSelectionChanged (int selStart, int selEnd)</a> is a protected method of the TextView class.  How do override it?</p>