I have an Android service that runs in the background. I need him to get feedback (and stop, for example) only when the user does something, regardless of whether he only touches an event on the main screen somewhere else or a keystroke.
Can I handle global touch events and keys?
source share