Android Question How to know when the Starter Service was stopped or destroyed?

Pravee7094

Active Member
Hi all,
In the Starter service, there are two sub such as Service_Start (StartingIntent As Intent) and Service_Destroy
If we want to know when starter service was started, We just give the Log message into the service_start sub
B4X:
Sub Service_Start (StartingIntent As Intent)
    Log("Service Started")
End Sub

But How to know when starter service was stopped or destroyed? I just try this below method, But not working.
B4X:
Sub Service_Destroy
    Log("Service Stopped")
End Sub

Any Other Suggestion? or Help ?

Thanks
Praveen
 
Top