SensorsManager accelerometer = SensorsManager.getSensorsManager(SensorsManager.TYPE_ACCELEROMETER, 100000);
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/50d31cd9-740e-4ab0-8e4d-353a9b501fc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks. I just built and updated the lib in the CodenameOneLibs repository so it should appear soon in the extensions section of Codename One Settings.Best regardsSteve
On Tue, Apr 11, 2017 at 10:56 AM, <rhoam.ba...@gmail.com> wrote:Hello! I'm working to implement CN1Sensors into a project using the Codename One Extension Manager (right click project, Codename One, Codename One Settings, Extensions), but it looks like the sample code on the page is invalid:SensorsManager accelerometer = SensorsManager.getSensorsManager(SensorsManager.TYPE_ACCELEROMETER, 100000);
I get the error "the method getSensorsManager(int, int) is undefined for the type SensorsManager". Typing "SensorsManager." and letting auto complete do its thing, the only functions available are getSenorsManager and onSensorChanged. One of the CN1Sensors source files describes getSenorsManager as "Functional alias (with a typo) for getSensorsManager(int type). Left around to avoid errors with existing code". It seems like this CN1 library has been updated by the developer, but the changes have not yet been propagated to the extension manager.Is the latest version of CN1Sensors available for server builds like iOS and Android, or will it also need to be updated? This seems like an update request more than anything, so I feel the discussion group was a better place for the question than StackOverflow. Is this something simple that would easily make its way into the next weekly update, or is it more complex than that?Please let me know what you think. Thank you!--