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.