如何观察Android的剪贴板,真的吗? [英] How to observe Android's Clipboard, really?

查看:102
本文介绍了如何观察Android的剪贴板,真的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检测的Andr​​oid剪贴板中的内容更改,并办理变更登记,但我实在无法理解如何来实现这样的结果。

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

有很多剪贴板经理人左右,但我发现没有开源的,这是很难相信,通过检查剪贴板每15秒他们的工作。

There are a lot of clipboard managers around, but I found none open source, and it's difficult to believe they work by checking the clipboard every 15 seconds.

有没有观察到剪贴板变化的好方法?

Is there a good method to observe clipboard changes ?

在此先感谢!

推荐答案

根据这个线程< /一>,至少在帆船方案,它们确实轮询剪贴板 - 每5秒。似乎没有成为API做任何其他方式在任何事情。

According to this thread, at least for the Clipper program, they do indeed poll the clipboard - every 5 seconds. There doesn't seem to be anything in the API to do it any other way.

这篇关于如何观察Android的剪贴板,真的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆