Let a service catch Ontouch events
<p>I'm making an android service that relies on the accelerometer, and therefor i can't allow the device to go to sleep. 
because of this <a href="http://code.google.com/p/android/issues/detail?id=3708#makechanges" rel="nofollow">http://code.google.com/p/android/issues/detail?id=3708#makechanges</a></p>

<p>i have a ScreenReceiver class that catches the action of screen off, when the device goes to sleep, and counters this action.</p>

<p>But, to save battery life, i'd like to dim the screen more than default by a dim lock, and then lighten it up again when the screen is touched. Ive only been able to find info on how to use the ontouch() events in an application ( <a href="http://developer.android.com/guide/topics/ui/ui-events.html" rel="nofollow">http://developer.android.com/guide/topics/ui/ui-events.html</a> ), and not a way to let a service receive touch events.</p>

<p>Is this possible, and if so, can anyone point me to some info on how to do so?</p>
