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.

inside custom component

Java Development

Reply
Developer
sickned
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified

Check if an application is visible

Hi, 

 

I can actually check is application is running, but how can I check if it's visible on a single moment?

 

Thanks.

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Check if an application is visible

there are several methods in http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html
see getForegroundProcessId() and getVisibleApplications()
----------------------------------------------------------
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.
@SimonHain on twitter