Andrew
Andrew

Reputation: 136

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 later 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.

Upvotes: 1

Views: 401

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

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.

Upvotes: 3

Related Questions