I have been using the android-job
Evernote library. I have job which is running continuously every 30 minutes. I have been using code to schedule the job
new JobRequest.Builder(TrackJob.TAG)
.setPeriodic(TimeUnit.MINUTES.toMillis(30), TimeUnit.MINUTES.toMillis(5))
.setUpdateCurrent(true)
.setPersisted(true)
.build()
.schedule();
Now I want to stop this Job when a user clicks on a button. How I will achieve this? Thanks in advance.