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
First of all I apologize if this has been discussed. I searched everywhere, but I am sure to agree it's hard to come up with search terms for this situation...
I recently formated my HD and installed Java, the Android SDK and Processing 2.0b3.
When I try to launch an Android sketch, if there's an error, the deployment halts but I don't get to see the description of the error. It works fine in Java mode.
Processing wasn't compiling it and the only information I was given was "Error from inside the Android tools, check the console.". I had to try to compile it in Java mode, and there I received the error message "cannot convert from Object[] to String[]" and I was able to fix the problem.
This happens every time I have an error in my code. In this case it was possible to try to compile it in Java mode (although it's annoying), but in some cases, like Android specific code, that isn't even possible.
EDIT - Great timing - Ketai v7 solved the problem!
Hi,
I am trying to use Ketai to comunicate over Bluetooth with my Android Phone (Galaxy SII).
I have implemented simple bluetooth communications, but Ketai seems to be an excellent library and provides easy access to sensors, which I will eventually also need.
My low(er) lever approach works fine, so I have no problems with bluetooth hardware.
When trying to use Ketai's bluetooth example, listing devices works fine, as detection and even pairing. The problem is, I cannot get it to connect. I tried connecting to my Sony Vaio's internal Bluetooth, a generic bluetooth adapter and an arduino BT module.
The ListSelection event gets triggered, as I confirmed printing data to the console inside that event. The only problem seems to be the connectToDeviceByName, which produces no results.
As stated, all bluetooth hardware works fine, as does my implementation based on Oscar's solution (
http://webdelcire.com/wordpress/archives/1045 - Thank you, Oscar). But as I mentioned, using Ketai would bring enormous benefits, so I would really prefer to get Ketai to work.