Skip to content
An example of how to run an Android service in the background even when the user kills the app.
Java
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
gen/com/example/alwayson
libs Initial commit.
res
src/com/example/alwayson
.gitattributes
.gitignore
AndroidManifest.xml
README.md
ic_launcher-web.png
proguard-project.txt
project.properties

README.md

AlwaysOn

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,

  1. User starts the app again.
  2. User presses power key to turn on the screen.
  3. User restarts the phone.
  4. 10 seconds passed after anything/anyone kills our service.

Here is a detailed explanation on the project.

Something went wrong with that request. Please try again.