Inside is
onAccessibilityEvent(AccessibilityEvent event){}
And then,
OR
Alternatively, in your case, the following should work fine. Since this is an event of type typeViewTextSelectionChanged, this is obviously from an EditText.
String text=event.getText();
For more information, look here and here.
Darshan miskin
source share