My service starts with the system or when the user opens the app. Consider my service for example, it creates a loop of code through timer and is running the functions of my code normally (exchange wallpapers), I can see that it is working when the screen is locked. However when I lock the screen, it is noticed that the service is paused, because this only happens again when the screen is unlocked. From what I know a service does not have a sub pause, but when I lock the screen I know it is not destroyed because when I unlock it works again without having to open the app to start it again. I do not know what happens there in the meantime, what is it that makes the service pause?