Android Question Stop Location Tracking on app closing

josejad

Expert
Licensed User
Longtime 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
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
Longtime 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
 
Upvote 0
Top