Android Question Stop Location Tracking on app closing

Discussion in 'Android Questions' started by Mike1970, May 14, 2019.

  1. Mike1970

    Mike1970 Active Member Licensed User

  2. José J. Aguilar

    José J. Aguilar Active Member Licensed User

    Maybe you can use in the tracking service? Not sure, test it.

    Code:
    Sub Service_TaskRemoved
        
    'This event will be raised when the user removes the app from the recent apps list.
    End Sub
     
    Mike1970 likes this.
  3. Mike1970

    Mike1970 Active Member Licensed User

    Thanks you!!
    It worked, i had to handle all the thing from the StartService and not in the TrackerService


    Code:
    Sub Service_TaskRemoved
        
    StopService(Tracker)
    End Sub
     
    José J. Aguilar likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice