i got some experience with qt, but i am new to symbian programming.
i am writing a first small application so access some sensor. i started
with the QAmbientLightSensor. In the simulator everything runs fine,
but on the device (5800 XM) the light level is always undefined.
Configuration in the .pro-file:
Setup an check the sensor in the MainWindow-Constructor:CONFIG += mobility
MOBILITY += sensors
Read in a private slot:ambientLightSensor = new QAmbientLightSensor;
warning("Warning: Could not connect to backend.");
warning("Warning: Could not start sensor.");
warning("Warning: sensor is not active.");
I am using Qt 4.7.0, Qt Mobility 1.02 and the remote compiler.QAmbientLightReading::LightLevel lightLevel = ambientLightSensor->reading()->lightLevel();
Can anybody tell me what i am doing wrong? Are there missing configurations (perhaps target.capabilites)?