I am usin GPS speed value from
OK, when i'm inside the house observing the trigger refresh it is around 1 second/per event trigger at 0 mph. I have not yet tested it above 0 mph. I am assuming you get more refresh rate per second?
My second question, when the device is in the background with device screen off i have been observing my distance and it seems to be off by half at least. I'm trying to figure out if the refresh rate is declined at this state? If yes, what can i do to increase the rate?
Thanks in advance
Tested with Android 8
B4X:
Sub GPS_LocationChanged (Location1 As Location)
OK, when i'm inside the house observing the trigger refresh it is around 1 second/per event trigger at 0 mph. I have not yet tested it above 0 mph. I am assuming you get more refresh rate per second?
My second question, when the device is in the background with device screen off i have been observing my distance and it seems to be off by half at least. I'm trying to figure out if the refresh rate is declined at this state? If yes, what can i do to increase the rate?
Thanks in advance
Tested with Android 8
B4X:
pws.PartialLock
Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER
Service.StartForeground(1, CreateNotification("Trip is running..."))