0

Possible Duplicate:
Get co-ordinates touch screen in a background service

I'm experimenting with an accessibility project -- is it possible to detect touchscreen events in the background, e.g. from a service? Assume I'm using a wakelock to keep my service alive in the background.

This is just a proof-of-concept, so I don't have to worry about the battery for now.

Community
  • 1
  • 1
Edward Falk
  • 9,991
  • 11
  • 77
  • 112

1 Answers1

1

I think what you are trying to do sounds similar to Get co-ordinates touch screen in a background service

I don't know any way to receive the events from the service either, but the suggestion of forwarding the events to your service sounds workable (as long as you are programming all the apps your clients will use yourself)

(There used to be a solution using TYPE_SYSTEM_ALERT but this was closed in Android 4)

Community
  • 1
  • 1
Adrian G
  • 775
  • 6
  • 11