| The Following User Says Thank You to Arie For This Useful Post: | ||
thanks.


| The Following User Says Thank You to jd4200 For This Useful Post: | ||
function isNight() {
var als;
als = Qt.createQmlObject('import QtMobility.sensors 1.2; AmbientLightSensor { }', this, null);
als.start();
if (als.reading.lightLevel == 1 || als.reading.lightLevel == 2) {
als.destroy(1000);
return true;
}
als.destroy(1000);
return false;
}
| The Following 4 Users Say Thank You to jflatt For This Useful Post: | ||
| The Following 2 Users Say Thank You to For This Useful Post: | ||