Last active
January 9, 2018 22:28
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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