开发者

Android Service class... keeping track of multiple instances of a service

开发者 https://www.devze.com 2023-03-31 11:32 出处:网络
I am about to begin messing around with Services and I was wondering if there is a way to keep track of what services are running. Is there a PID I can have returned and store in some container along

I am about to begin messing around with Services and I was wondering if there is a way to keep track of what services are running. Is there a PID I can have returned and store in some container along with my data pertaining to that service so that at a l开发者_如何学运维ater time I can bring up an activity and it present to me a list of the services I have running? Basically looking to write a Service that can be spawned multiple ways with different settings.


keeping track of multiple instances of a service

There are never "multiple instances of a service". There will be exactly 0 or 1 instances of a service.

0

精彩评论

暂无评论...
验证码 换一张
取 消