DaedalusAlpha
DaedalusAlpha

Reputation: 1727

JobService rescheduling

What I wonder is if the JobParameters sent in jobFinished are the ones passed on to onStartJob when a JobService is restarted?

Say I start a thread in my JobService and in it I call jobFinished with true as the needsReschedule parameter. If I have added something new to the JobParameters extras that are also given to jobFinished, will this be visible when eventually onStartJob is called again? or will onStartJob always only provide the JobParameters that were provided when the service was initially started?

Upvotes: 0

Views: 113

Answers (1)

DaedalusAlpha
DaedalusAlpha

Reputation: 1727

I tried it and it turns out that the PersistableBundle in the onStartJob function will always be the one sent initially, so changing any data and sending it in jobFinished won't work.

Upvotes: 1

Related Questions