0
Hello, I need to implement a Jobservice on Android.
I created the base class for a Job, but I’m not able to define an execution parameter, minutes, days and hours etc.
I find no example, someone already implemented and could help me?
public class InformarLocalizacao extends JobService {
@Override
public boolean onStartJob(JobParameters params) {
return false;
}
@Override
public boolean onStopJob(JobParameters params) {
return false;
}
}
The <ervice>
was added to the manifest, but I need a routine to be called time-in-time...
The point is that the version I need to implement is Jelly Bean, Jobservice works only from Lollipop. There are numerous compatibility solutions. You can tell me the best?
– Marcelo Gomes
Maybe the Workmanager, but it depends on what you want to do. See this reply
– ramaral
Try the Firebase Job Dispatcher https://github.com/firebase/firebase-jobdispatcher-android#user-content-firebase-jobdispatcher-
– Lennoard Silva
It worked with Firebasejobdispatcher Thanks.
– Marcelo Gomes