I\'m currently working on implementing a Service
that when requested will perform some work on several parallel threads.
My implementation is based on the <
Once neither of these situations hold, the service's onDestroy() method is called and the service is effectively terminated. All cleanup (stopping threads, unregistering receivers) should be complete upon returning from onDestroy().
static
member are associated withe class rather than with any object, and the common use is to share the same static member between different (services in your case) instances. BlockingQueue
interface, but I doubt that, for normal cases use, you will see differences from the performances perspective.