-1

When adding the jobs in job scheduler and reboot the system. all pending jobs are cancelled. why? how to resolve this? thanks in advance

1 Answers1

0

Because you didn't set them as persisted. When you build the JobInfo structure, remember to call setPersisted(true). Otherwise it won't last around reboots.

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127