A template for how to resurrect/keeps running an Android service in the background even when the user kills the service.
This template has the following four ways to revive the service,
- User starts the app again.
- User presses power key to turn on the screen.
- User restarts the phone.
- 10 seconds passed after anything/anyone kills our service.
Here is a detailed explanation on the project.