Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 27
Registered: ‎02-22-2010
My Device: Password
Accepted Solution

Detect Application Foreground or in <<Standby>>



I'm using webworks and trying to detect when the application is in <<Standby>> with the other apps sleeping (on the 4 window screen) and when it's being called back to the main display. I remeber seeing something about this a while ago but I cannot find anything about it now.


Does anybody have access to an example?




Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Detect Application Foreground or in <<Standby>>

Which platform are you targeting - BlackBerry 10 or is the on the BBOS?


If its BlackBerry 10, there are system events that occur when the application state changes.  Theoretically, one could build a WebWorks extension (similar to the one proposed here https://github.com/blackberry/WebWorks-Community-APIs/issues/150) that listens for the following event:


Follow me on Twitter: @n_adam_stanley
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Posts: 27
Registered: ‎02-22-2010
My Device: Password

Re: Detect Application Foreground or in <<Standby>>



I'm working with BB10

Posts: 27
Registered: ‎02-22-2010
My Device: Password

Re: Detect Application Foreground or in <<Standby>>

Found the solution after I followed you links.. I wasn't looking at the right place.




onResume is trigger when the app comes back on BB10.