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?
Re: Application is suspended when home button is pressed
according to: [url]http://www.developer.nokia.com/Community/Wiki/Homescreen_widget_guidelines[/url] , you would get onBlur event when your widget loses focus.
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");
}
Re: Application is suspended when home button is pressed
Hi,
Check widget.onhide event. It is triggered when a widget loses focus.
[url]http://www.developer.nokia.com/Resources/Library/Web/GUID-55F6778A-D1DA-4288-93B2-0863558D34B7.html[/url]
-Ilkka
Re: Application is suspended when home button is pressed