Android Service class... keeping track of multiple instances of a service
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.
精彩评论