This is an example of how to use Android's JobScheduler API in a simple application. Note: The JobScheduler API is only available for api level 21 (Android Lollipop), hence the application won't run on devices with minSdkVersion < 21.