0

I have a service which is running in the background.

I'd like to pass that service Coordinates and determine what is being displayed at those Coordinates (ie, an image, a contact..etc).

Is it possible to do this at all? I already can capture the touch co-ord's, but telling whats at those co-ords is what I need to know.

For example: If I send the service "400, 760" - and there was a picture being displayed, I'd like to know that it was a picture, and the DIR it was located...

footose
  • 325
  • 1
  • 2
  • 8
  • Or another way I'd like to do it - is invoke my service, when a "long press" is done on the screen, say for when selecting images – footose Jan 30 '14 at 20:25
  • I hope you can't. Apps should not be able to spy on other apps. – zapl Jan 30 '14 at 20:48
  • Well, I can get the current app that's open using this - http://stackoverflow.com/questions/11118721/android-how-can-i-get-current-opened-application-name-on-screen?lq=1 Since I know that, I can tell if the person is say.. on the Gallery.. if I could somehow return the filename of the file they are viewing, I'd be good to go.. – footose Jan 30 '14 at 21:13
  • Probably not. The app name is exposed via an API, but content of other apps or interfering with it (e.g. send keypresses to another app, take screenshots of it, ...) is never deliberately exposed. You can just do to much evil when you can spy on e.g. the pin pad of your banking app. – zapl Jan 30 '14 at 21:17

0 Answers0