Broadcast Receiver listening to text selection

牧云@^-^@ 提交于 2019-12-13 16:41:58

问题


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


回答1:


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.

Hope that helps..



来源:https://stackoverflow.com/questions/12145139/broadcast-receiver-listening-to-text-selection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!