Android - Can you listen for text-highlight events?

I would like to listen for a text-highlight event in the system not only in my app (i.e at least in chrome). Is this possible folks and if yes can you please provide a sample implementation?


I found the answer here: How to develop an Android tool to be used for any text in any app

Is that possible?

Generally speaking, no, for security reasons.

In this specific case, you could create your own input method editor (a.k.a., soft keyboard), which the user could elect to use, and you could find out when the user selects text in an EditText. But writing a good input method editor is not simple, and it will have no effect on, say, text highlighted in a Web browser.

Can I use "The Clipboard Framework" to listen for text selection?


Need Your Help

How to pull all Int vals out of List?


I have a List[Any] in Scala which contains a mix of Int, String, Char, and List. I want to pull out only the Int values into a new List that would be List[Int]. How do I do that?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.