KetaiLocation and setUpdateRate (r424) (SOLVED)
in
Android Processing
•
8 months ago
Hi,
I have been using Ketai for a while, it's an amazing library and does (almost) everything I need.
My problem is that KetaiLocation updates location information every... about 10 seconds. It works fine at a 1Hz update rate on and HTC Evo3D with Android 4.0, but location gets very slow updates on my Galaxy S3 and my Transformer Infinity, both with Android 4.1.1. The only common ground I can find is the version of the OS.
I was hoping that the new version r424 would fix the problem with setUpdateRate, but as much as I try I can't get it to compile (it's not really my area) and I cannot find a compiled version.
Any thoughts on that? Am I right to assume that setUpdateRate(1, 1) would fix my problem? If so, could someone share a compiled version, and if not... Any thoughts?
I could go back to my initial versions and get the location form the Android API, but my code would look much nicer and cleaner if I could just use Ketai...
I am using it on my PhD prototypes and time is running out for me, so some quick replies would be very appreciated.
[Edit]
Solved: I managed to compile it myself, and I am pleased to say that it works. It's been very stable so far and I now have a 1Hz location update rate on Jellybean
Quoting the docs for requestLocationUpdates():
"Prior to Jellybean, the minTime parameter was only a hint, and some
location provider implementations ignored it. From Jellybean and
onwards it is mandatory for Android compatible devices to observe both
the minTime and minDistance parameters."
Thanks in advance.
BR
1