0

In Android if you were to bind to a service while there was already an instantiation of the service, would another service be instantiated or would the client bind to the existing instantiation?

4

1 回答 1

1

如果您的服务已经在运行,客户端将绑定现有服务。

提示:您可以在bindService调用上使用标志 BIND_AUTO_CREATE 来避免服务实例化

于 2013-06-04T15:33:26.270 回答