×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    76

    Exclamation Window State for MeeGo Apps

    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
    Join Date
    Sep 2011
    Posts
    449

    Re: Window State for MeeGo Apps

    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
    Join Date
    Oct 2011
    Posts
    76

    Re: Window State for MeeGo Apps

    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
    Join Date
    Aug 2011
    Posts
    32

    Re: Window State for MeeGo Apps

    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. Replies: 4
    Last Post: 2008-06-25, 14:08
  3. Suspend another processes thread?
    By mayur_24 in forum Symbian
    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
  •  
×