Spanish Consulta sobre servicios

l4nder

Member
Licensed User
Longtime User
Buenas, resulta que estoy creando una App que tiene un servicio, pero al salir de esta, el servicio sigue corriendo, me gustaria q se pare al salir de la App.:sign0104:
 

genesi

Active Member
Licensed User
Longtime User
Hola tienes que usar StopService(servicio)

Stops the given service. Service_Destroy will be called. Call StartService afterwards will first create the service.
Service - The service module or service name. Pass empty string to stop the current service (from the service module).
Example:
StopService(SQLService)
 
Top