Welcome!

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

Web and WebWorks Development

Reply
Visitor
irwintabisora
Posts: 1
Registered: ‎01-31-2012
My Carrier: globe

onForeground and onBackground observe

Is there any way to to check if the app is running on background or foreground? 

 

I'm having difficulties and conflicts when I set my app in the convenience key and having it running on background mode. The problem is that the convenience key 1 event observer I put in my app still triggers even if my app is not setup in the convenience key.

 

Example:

 

convenience key 1: camera:

 

When I click the convenience key 1, the function in the convenience key event still triggers. Is there any function that check the event for background or foreground?  Thanks for the help! :Sweatdrop:

Please use plain text.