Hi everyone, i implemented this code in my app to track the position in background:
https://www.b4x.com/android/forum/threads/background-location-tracking.99873/
But after 4 hours it stopped working... what could be the problem? in the "Service_Create" of the tracking i have:
And i put this in the Starter:
https://www.b4x.com/android/forum/threads/background-location-tracking.99873/
But after 4 hours it stopped working... what could be the problem? in the "Service_Create" of the tracking i have:
B4X:
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER 'we are handling it ourselves
GPS.Initialize("gps")
lock.PartialLock
And i put this in the Starter:
B4X:
Sub Service_TaskRemoved
'This event will be raised when the user removes the app from the recent apps list.
StopService(Tracker)
End Sub
Last edited: