I am trying to find a way to detect when a user touches the screen in any way while my services is running in the background. For example, I want to be able to detect when a user presses on an app icon on the home screen. Is this possible and if so how would it be implemented?
Share
Please see this explanation of services. You should be able to send a message to your service using a Messenger. So on your onClick event you will call your messenger … example: