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.
http://catinean.com/2014/10/19/smart-background-tasks-with-jobscheduler/
Java
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.