hi m8,
how can i know suspend my app in the background for QML?
did u know any code for this?
(window state - like suspended, closed etc.)
(maybe my english is so bad. sorry for that.)
thanks for u r reply.
best regards.
hi m8,
how can i know suspend my app in the background for QML?
did u know any code for this?
(window state - like suspended, closed etc.)
(maybe my english is so bad. sorry for that.)
thanks for u r reply.
best regards.
Hi,
Please have a look at http://harmattan-dev.nokia.com/docs/...0states&sp=all
Sometimes the above link does not open, in that case please open harmattan developer documentation and search for application life cycle.
You will have to use com.nokia.meego in your qml.
Application visibility and activity status is defined by the platformWindow context property.
Visibility and activity status are accessible by using the boolean properties platformWindow::visible and platformWindow::active
Also there is a short wiki article - http://www.developer.nokia.com/Commu..._1.2_Harmattan
Hope this helps!
thanx @kusumk.
but this isn't solution of my question.
this code is not stopping my Timer Element when the window is inactive.onStatusChanged: {
if (status == PageStatus.Active) {
myTimer.running = true
}
else if (status == PageStatus.Inactive) {
myTimer.running = false
}
}
what can i do?
best regards.
Timer will resume when application is active againg.Code:running: platformWindow.active