Android Background Service Template

This is a simple Android background Service Template. You can use it to run updates in the background without blocking the UI. To start and stop the service use the following lines in your activity:

This is all you need to execute a service on android devices. Don’t forget to add the service to your AndroidManifest.xml file.