I'm trying to access GPS data from androidhelper, but the 'location' events come at about 1 minute intervals. I'm testing in a Motorola e5, with Android 8. The basic code is:
import androidhelper
droid.androidhelper.Android()
droid.startLocating()
droid.eventWaitFor('location', int(9000))
location = droid.readLocation().result
print(location['gps']['latitude'])
print(location['gps']['longitude'])
droid.stopLocating()
With other apps, the GPS data refresh rate is about 1 second.
Is there any way to improve the refresh rate for androidhelper?
[https://kylelk.github.io/html-examples/androidhelper.html][1] I think it has to do with the defaults:
If I reduce them it seems to be much faster.