qtubuntusensorsubuntu-touch

Get sensor values Ubuntu Touch


I'm new to Ubuntu applications and I'm trying to make an application for Ubuntu Touch that reads the values from the sensors (Accelerometer, Gyroscope,...) but I don't know where to begin. Which language to use? QML, C++.. I've done a thorough search around the web and I couldn't find a single sample application using sensors in ubuntu touch.

I've tried to use QtMobility and the QtSensors plugin with QtCreator but it only runs the code on the desktop. When I try to run the app on the device a message saying that the modules are not installed appears. So, I don't know if QtSensors is implemented in Ubuntu Touch or even if this is the right way to access sensors in Ubuntu touch.


Solution

  • Sensor reading is still work in progress in Ubuntu Touch.

    If you're interested in following the progress of this and other features, you might want to check out the Ubuntu SDK features status page.

    That page documents the status of the planned features to be added to the Ubuntu platform on mobile devices and when they will be accessible via the Ubuntu SDK for app developers to use it in their applications.

    You might also want to ask your Ubuntu Touch related questions on Ask Ubuntu.