Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.0 Beta 1, 5.9.0 Beta 2
-
None
-
Android
Description
I am using Qt 5.9.0 Beta 2 and trying to access the humidity sensor on a Samsung Galaxy S4 running Android 5.0.1 using QHumiditySensor class. Upon running the code and querying the list of available sensors on Samsung Galaxy S4 using QSensor::sensorTypes() the humidity sensor is not recognized and I am only getting a list as follows (no humidity sensor is detected):
"QMagnetometer", "QGyroscope", "QCompass", "QOrientationSensor", "QTiltSensor", "QAmbientLightSensor", "QProximitySensor", "QPressureSensor", "QLightSensor", "QRotationSensor", "QAccelerometer", "QAmbientTemperatureSensor".
I am able to access sensor data from other sensors such as the QPressureSensor and the QAmbientTemperatureSensor, it is only the newly introduced QHumiditySensor class which does not seem to recognize the presence of the humidity sensor in the cell phone.
Additionally, I am able to access the humidity value from the humidity sensor on the S4 using the SmartGadget application from Sensirion https://play.google.com/store/apps/details?id=com.sensirion.smartgadget&hl=en. As such the issue appears to be related to a Qt bug.