Will stopService () stop the foreground service?

Will stopService() stop a service running as a foreground service ? He also seems to โ€œfeelโ€ as if he were transcending the importance of foreground services.

+4
source share
2 answers

Confirmed: Yes - starting stopService() from an Activity outside the service will stop the service, even if the service is a running service.

+6
source

He stops the service right. This will not exceed any value, if your code sends an intention to stop the service, it would be reasonable to obey the indicated intention.

+1
source

All Articles