Android Question Stop Location Tracking on app closing

José J. Aguilar

Well-Known Member
Licensed User
Maybe you can use in the tracking service? Not sure, test it.

B4X:
Sub Service_TaskRemoved
    'This event will be raised when the user removes the app from the recent apps list.
End Sub
 

Mike1970

Well-Known Member
Licensed User
Maybe you can use in the tracking service? Not sure, test it.

B4X:
Sub Service_TaskRemoved
    'This event will be raised when the user removes the app from the recent apps list.
End Sub
Thanks you!!
It worked, i had to handle all the thing from the StartService and not in the TrackerService


B4X:
Sub Service_TaskRemoved
    StopService(Tracker)
End Sub
 
Top