In this tutorial, you will learn how to use the JobScheduler API available in Android Lollipop. The JobScheduler API allows developers to create jobs that execute in the background when certain conditions are met.
Source files for the Tuts+ tutorial: Using the JobScheduler API on Android Lollipop
Read this tutorial on Tuts+