标签: android android-service android-lifecycle job-scheduling
在JobService上调用stopSelf(startId)或stopSelfResult(startId)会产生什么后果。是的,我可以致电jobFinished。但幽默我。会发生什么?
stopSelf(startId)
stopSelfResult(startId)
jobFinished
答案 0 :(得分:3)
JobService是bound service而stopSelf / stopSelfResult仅适用于started Services,因此不会发生任何事情。
JobService
stopSelf
stopSelfResult