Job job = dispatcher.newJobBuilder()
.setTag("JOB_TAG")
.setService(MyService.class)
.setTrigger(Trigger.NOW)
.setReplaceCurrent(false)
.setRetryStrategy(RetryStrategy.DEFAULT_EXPONENTIAL)
.setConstraints(Constraint.ON_ANY_NETWORK)
.build();
dispatcher.schedule(job);
my code is here. even when all the conditions are here, my work begins with a delay. Can I call him somehow?
source
share