If I create and start a service I know its name, of course, but some library added to my project may start a service: is there a way to get a list of services started by my app?
I guess that the library doesn't start one of your services, right? I don't see any simple way to see which services are running. What do you need it for?
To close "completely" my apps; I think I have to close all my activities using Activity.Finish, stop all services and use ExitApplication, but I need to know if there are services started by the libraries I use, to be able to stop them.
I know but if you don't close "well" your app, as you know it may be restarted from the wrong Activity (this is why you created the Starter service).
Also, some FirstTime may be result set to False (but I think that Activity.Finish should be enough for this).
This is not 100% accurate. Services will never affect which activity will start. The app is allowed to start from a different activity. For example if the user presses on the home button when Activity2 is in the foreground and later returns to your app (after the process was killed).
If you initialize all the process global variables in the starter service then everything will work as expected.
This is not 100% accurate. Services will never affect which activity will start. The app is allowed to start from a different activity. For example if the user presses on the home button when Activity2 is in the foreground and later returns to your app (after the process was killed).
If you initialize all the process global variables in the starter service then everything will work as expected.
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.