How to listen for a copy in Android

后端 未结 3 1656
-上瘾入骨i
-上瘾入骨i 2021-01-11 18:30

To get myself a little more familiar with content providers in Android, I\'m making a small clipboard manager app. Its core functionality is to simply add whatever you copy

3条回答
  •  没有蜡笔的小新
    2021-01-11 19:02

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

提交回复
热议问题