tags:

views:

20

answers:

1

Hi! Is it possible to write service that can catch any user's click on the touch screen and read text of the click no matter what application currently is active? For example user click on browser or any other application and that service will know what word is written in the location of the screen.

Thank you.

A: 

There is a built in functionality to select and copy text, as you can see from this video.

If you want to do it programatically, start reading on ClipboardManager. However, I find it most unlikely that this will work on every application developed for Android.

BennySkogberg
Hi, thanks for the quick reply!I think that I didn't explain myself correctly. What I want is service that run in background and monitor user's click from other applications.Regarding ClipboardManager, each application should implement and use this service in order to set text in the clipboard, I want catch it without the application. Thanks again!!!!!
yav
You can always have a service running in the background, but whether your idéa tampers with user clicks in another application is something to find out. Looks interesting though. More to read on service (in background): http://developer.android.com/reference/android/app/Service.html
BennySkogberg