I think @biquillo misunderstood your question, but I found a good idea in CommonsWare's answer ..
Basically, you can start a service by simply binding it and setting a flag to create it, if it has not already been created. Then, whenever an activity is created, it is attached to the service, onDestroy it disappears. This will destroy the service once when no activity is tied to it.
Hope this helps and he solved ur problem;) Greetings
Ewoks source share