Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经从一个活动启动了服务,以及如何在任务完成后自动停止它?
该服务可以stopSelf()在完成后调用。如果您使用IntentService,这将自动发生。
stopSelf()
IntentService