Hello. I am writing an application for Android , the generalized structure of which is the main Actvity (plus a bunch of child Activity, but not really related to the question) and the class inheriting the service (Service). By pressing a button in chapters. An activity that is inherited from the service starts and performs some background tasks assigned to it.
Two questions:
a) upon closing the Activity , does my service continue to work autonomously?
b) if a) = true, then how can we determine whether the service is running on the system from under the main Activity launched later (again) at some time or not?