I’m an Android developer and I’m trying to figure out how to build a tool/app that suggests features to the user when highlighting any text on any other application.
Is that possible? I guess it will be similar to developing the “copy and paste” feature, but I just need to know from where to begin and what do I exactly need to achieve this.
EDITED:
Can I use “The Clipboard Framework” to listen for text selection?
Generally speaking, no, for security reasons.
In this specific case, you could create your own input method editor (a.k.a., soft keyboard), which the user could elect to use, and you could find out when the user selects text in an
EditText. But writing a good input method editor is not simple, and it will have no effect on, say, text highlighted in a Web browser.No.