I have an android application containing an Activity and a service. I want to make the service start at boot. I would use activity to just give a UI to the user to configure certain params and start the service. I want the service to start at boot time. I know that I can do it this way.
Now I have two questions related to this:
- The service would always start at boot. But what if I want to stop it. Can I do it in the activity by simply calling stopService()?(Needed as suppose the user wants to change the params of the running service.)
- If I install a newer version of the application, which might have few changes in the service class, will it auto stop the service and replace it with the newer one?