Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 839 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 839 Bytes

JobSchedulerDemo

Simple app to test new Android JobScheduler API posibillities

GitHub Logo

Available constraints for executing JobInfo

  • Job id
  • Minimum latency in milliseconds (setMinimumLatency method)
  • Deadline in milliseconds (setOverrideDeadline method)
  • Persists after reboot (setPersisted method)
  • Requires charging (setRequiresCharging method)
  • Requires device idle (setRequiresDeviceIdle method)
  • Network type (setRequiredNetworkType method)

Managing jobs

  • Starting job
  • Cancelling all pending jobs
  • Displaying list of pending jobs

This app was done as a part of article http://www.schibsted.pl/2015/05/jobscheduler-to-the-rescue/. Pdf version can be downloaded here