Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
almeida
Posts: 91
Registered: 02-04-2009
Accepted Solution

Notification When the Foreground Application Changes?

Is it possible to get notified when the foreground application changes?  For example, if the user launches the browser, can my application get notified?  I didn't see anything via the global event listener callback.  I know it is possible to poll for the current application, but that is not ideal.
Please use plain text.
Developer
mantaker
Posts: 1,477
Registered: 12-30-2008

Re: Notification When the Foreground Application Changes?

Use FocusChangeListener and raise an event whenever the focus is lost!

 

Thanks.. 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Please use plain text.
Developer
Jacul
Posts: 51
Registered: 04-01-2009

Re: Notification When the Foreground Application Changes?

I think LZ is trying to block some application from being foreground.

When your application is background ,there seems no good method to be notified while foreground application changes.

Please use plain text.
Developer
simon_hain
Posts: 9,824
Registered: 07-29-2008
My Carrier: O2 Germany

Re: Notification When the Foreground Application Changes?

Jacul is right, you get notifications about your own app becoming the foreground app (and vice versa) but there is no way to get this information about other applications.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Developer
almeida
Posts: 91
Registered: 02-04-2009

Re: Notification When the Foreground Application Changes?

Thanks guys.
Please use plain text.