android - After call jobFinished(mParams, false) why the job is still pending? -
after call jobfinished(mparams, false)
can see job still pending because when getpendingjob
after can still see job.
when job finished schedule new job, can't because getpendingjob
job still running , if jobscheduler.schedule
it's stop job running (don't know if it's matter)
note: main problem cancelling job running have event onstopjob(jobparameters params)
called. , problematic
this code of jobfinished implemented in android if it's can understand
public final void jobfinished(jobparameters params, boolean needsreschedule) { ensurehandler(); message m = message.obtain(mhandler, msg_job_finished, params); m.arg2 = needsreschedule ? 1 : 0; m.sendtotarget(); }
so of course it's seam jobfinished send message processed in looper (in next loop), before go out of current loop jobfinished not processed :( how can in such way ?
Comments
Post a Comment