Skip to content

Instantly share code, notes, and snippets.

@thatfiredev
Last active January 9, 2018 22:28
Show Gist options
  • Save thatfiredev/eb0dc103a673903769cae000e5a38294 to your computer and use it in GitHub Desktop.
Save thatfiredev/eb0dc103a673903769cae000e5a38294 to your computer and use it in GitHub Desktop.
Utilizado no artigo O job dos Jobs - JobServices https://medium.com/@rosariopfernandes/job2-fbf022368795
public class MyJobService extends JobService{
@Override
public boolean onStartJob(JobParameters job) {
jobFinished(job,false);
return false; //Ainda há algo a ser executado?
}
@Override
public boolean onStopJob(JobParameters job) {
return false;//Tentar novamente?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment