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.
Catch copy event android
-
12-06-2023 - |
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,
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow