×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    21

    Application is suspended when home button is pressed

    Hi,

    I'm developing a board game with wrt. And now I have a problem after publishing the app to ovi store. It failed in media quality test with an error of 'The application does not enter into pause state after suspending the application in the background.'

    I have a timer in the application and when the home button is pressed the app is continuing to run and the timer is so on. I want to exit from application when home button is pressed. So I want to learn how can I understand the home button is pressed event with wrt.

    Do you have any idea about that?

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Application is suspended when home button is pressed

    according to: http://www.developer.nokia.com/Commu...get_guidelines , you would get onBlur event when your widget loses focus.

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    21

    Re: Application is suspended when home button is pressed

    I have used the code blocks below. But nothing happened after I pushed to the home button, when the application is open. I'm returning to the application list view. After that I'm returning back to the application but no alert was shown.

    window.onBlur = function(){
    alert("blurred");
    }

    or

    window.onblur = function(){
    alert("blurred");
    }

  4. #4
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Application is suspended when home button is pressed

    Hi,

    Check widget.onhide event. It is triggered when a widget loses focus.

    http://www.developer.nokia.com/Resou...3558D34B7.html

    -Ilkka

  5. #5
    Registered User
    Join Date
    May 2011
    Posts
    21

    Re: Application is suspended when home button is pressed

    Thanks, it worked now.

Similar Threads

  1. How to capture when power button is pressed?
    By qt_chenchen in forum Symbian
    Replies: 11
    Last Post: 2011-04-26, 09:19
  2. Evaluvate when the equal to button is pressed
    By kumarv75 in forum Mobile Java General
    Replies: 1
    Last Post: 2010-06-16, 08:50
  3. ViewSrv 11 panic : when menu button of 7650 is pressed on an active app
    By nitinkumar in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-12-09, 19:20
  4. Application is closed when a key is pressed or screen saver is running
    By lss0986 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-04-12, 07:08
  5. Replies: 1
    Last Post: 2006-09-15, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •