Android Question Stopping the Starter Service

Discussion in 'Android Questions' started by JMB, Aug 22, 2019.

  1. JMB

    JMB Active Member Licensed User

    I've been using the updated FusedLocationProvider with GoogleMaps tutorial as posted yesterday, and I've modified it nicely to do some stuff, but I am unclear as to how to stop the Starter Service. I've read around the forum about the Starter service being the main entry point to one's code.

    I added a Close button which closes the Activity and tries to Stop the service, but it seems to continue merrily along in the back ground when the main activity is closed.

    How do I kill everything when I quit the program using Activity.Finish in the only Activity in my program?

    Thank you.

  2. Erel

    Erel Administrator Staff Member Licensed User

    Don't stop the starter service. Let the OS do its part. It will kill the process when it is in the background.
  3. noeleon

    noeleon Member Licensed User

    I hope there's a way to stop it. If you look at the app details of an app with a starter service that you already closed and is in the background for a long time it will be listed as Always running (100%) which many users will not like, even though it does not consume power and cpu.
  4. noeleon

    noeleon Member Licensed User

    I use ExitApplication which I know is not recommended :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice