Help with method to handle the Lock Screen..
-
hi, I'm Stefano and I would like to know if there is a method to handle the lockscreen.
I wish that when I unlock the black screen of the mobile phone (Nokia N9), opens in a Qt application (which I created), but I do not know code to handle the lock screen.Thanks to all :)
Edit:
I solved in this way:I have included this in the main.qml file:
[code]
import QtMobility.sensors 1.2
import QtMobility.location 1.1
import QtMobility.systeminfo 1.2
[/code]I have add this code on main.qml file:
[code]
DeviceInfo {
monitorLockStatusChanges: true
onLockStatusChanged: {
if (!isDeviceLocked) {
//console.log("show")
QmlApplicationViewer.show();
}
}
[/code]