I want to implement a Job Scheduler for the run a task for a given time and it should have an ability to set repeat period like every day, every week or every month. So how should I do it correctly?
Asked
Active
Viewed 478 times
-3
-
1https://code.tutsplus.com/tutorials/using-the-jobscheduler-api-on-android-lollipop--cms-23562 – MJM Apr 23 '18 at 09:13
-
I also want it to run pre-lollipop versions? – Shehan Madushanka Apr 23 '18 at 09:16
-
1use this lib https://github.com/evernote/android-job it support all version – MJM Apr 23 '18 at 09:19
-
1http://www.vogella.com/tutorials/AndroidTaskScheduling/article.html try this – Revathi Manoharan Apr 23 '18 at 09:21
1 Answers
0
Use Android-Job library provided by evernote
. Its easy to use. It use either the JobScheduler, GcmNetworkManager
or AlarmManager
. Its works back to Ice Cream Sandwich. You don't have to check Android version manually this library will automatically choose the best for you. You can check this blog post too.

Abu Yousuf
- 5,729
- 3
- 31
- 50