Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User prodigy47's Avatar
    Join Date
    Oct 2011
    Posts
    76
    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.

  2. #2
    Registered User kusumk's Avatar
    Join Date
    Sep 2011
    Posts
    449
    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!

  3. #3
    Registered User prodigy47's Avatar
    Join Date
    Oct 2011
    Posts
    76
    thanx @kusumk.
    but this isn't solution of my question.

    onStatusChanged: {
    if (status == PageStatus.Active) {
    myTimer.running = true
    }
    else if (status == PageStatus.Inactive) {
    myTimer.running = false
    }
    }
    this code is not stopping my Timer Element when the window is inactive.
    what can i do?
    best regards.

  4. #4
    Registered User giovanni88's Avatar
    Join Date
    Aug 2011
    Posts
    32
    Code:
    running: platformWindow.active
    Timer will resume when application is active againg.

Similar Threads

  1. sleep suspend
    By oucpff in forum Mobile Java General
    Replies: 3
    Last Post: 2011-03-30, 11:54
  2. Is there any example for thread suspend and resume?
    By gigglie in forum Symbian C++
    Replies: 4
    Last Post: 2008-06-25, 14:08
  3. Suspend another processes thread?
    By mayur_24 in forum Symbian C++
    Replies: 0
    Last Post: 2005-01-13, 13:01
  4. 7650 suspend/resume bug
    By disco2002 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-01-15, 14:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved