This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get raw acceleration data in Android-Nordic-Thingy application?

Hello,

I have a Nordic Thingy 52, and I installed the Android application from github: https://github.com/NordicSemiconductor/Android-Nordic-Thingy

I can connect the Thingy to the app and display live data with no problem such as gravity, 3D orientation or after toggling in their check box the Motion view.

Now I want to get the acceleration measured by the Thingy but how to do that? I found the function onAccelerometerValueChangedEvent() in the file MainActivity.java, however this function is never fired. In the other hand, the function onGravityVectorChangedEvent() is regularly fired for each gravity data.

I guess I have to activate the acceleration listener, but I can't manage to do that. Is there something i miss?

Thanks for your help.

Emmanuel

Parents Reply Children
Related