How to observe Android's Clipboard, really?

后端 未结 2 1439
你的背包
你的背包 2021-02-11 06:39

I need to detect Android Clipboard\'s content changes, and register the changes, but I can\'t really understand how to achieve such result.

There are a lot of clipboard

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-11 07:12

    Since API version 11 ("Android 3.0"), there is a new service and appropriate callback ClipboardManager.OnPrimaryClipChangedListener

提交回复
热议问题