title: Android: how to stop service belonging to another application?
body: <p>I have a few applications using a shared library that starts a service when the user opens one of the apps. Ideally only one instance of this service will be running regardless of how many of these apps are open.</p>
  
  <p>For example, the user opens app "A" which starts the service. Then the user opens app "B" which detects that the service is running, stops it, and then restarts the service itself.</p>
  
  <p>Is this something that can be accomplished in Android by running the service in it's own process, or by some other method?</p>