我正在查看文档,但它并没有在任何地方真正解释这一点。我确实找到了这个:
The service will at this point continue running until Context.stopService()
or stopSelf() is called.
这告诉我的是服务将继续运行,但这是假设发生方向变化时 Activity/Fragment 不会自动停止它已经启动的服务。我还发现了这个:
Using startService() overrides the default service lifetime that is managed by
bindService(Intent, ServiceConnection, int): it requires the service to remain
running until stopService(Intent) is called, regardless of whether any
clients are connected to it.
我可以假设在我明确调用之前服务实际上不会停止stopService
吗?