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
Visitor
Posts: 1
Registered: ‎03-09-2010
My Device: Bold 9000

Monitoring of visibility of other applications

Is it possible to determine the moment of switching of certain application from foreground to background and vice versa? It is about applications that run in the separate processes.

 

I need to write the program that collects some statistics from using of big set of applications (app names read from configuration file). My application works in background and should remember moments of switching of other apps between foreground and background. Set of these applications is sufficiently big and most part of these applications will never work on certain phone.

 

Developer
Posts: 141
Registered: ‎02-10-2010
My Device: 9500

Re: Monitoring of visibility of other applications

You can run a TimerTask to get the list of applications running at the moment and filter the  ones that you are interested in.