Question

I am programming a dictionary which has Instant lookup function. I wanna when I selected text and copy it, a popup is displayed (display this text and meaning of it). Firstly, I wanna display selected text. Any idea and advice. You can view this apps: QuickDict I really like it,

Was it helpful?

Solution

If you are using API level 11 (3.0) or above, then you can use addPrimaryClipChangedListener which is documented click here and there is some example usage click here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top