广播接收器收听文本选择 [英] Broadcast Receiver listening to text selection

查看:82
本文介绍了广播接收器收听文本选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以定义一个广播接收器,以侦听在任何应用程序上进行的文本选择

Is it possible to define a broadcast receiver that listens for text selection made on any application

推荐答案

在文本选择上没有生成广播意图,因此您尝试执行的操作是不可能的.

There is no broadcast intent generated on text selection, so what you try to do is impossible.

如果您想为特定的应用程序提供外部功能,则可以联系开发人员,并要求他们明确广播可接收和响应的意图.

If there are specific apps that you'd like to provide them with external functionality, than you can contact the developers and ask them to explicitly broadcast an intent that you can receive and respond to.

希望有帮助.

这篇关于广播接收器收听文本选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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