Troubleshooting guide

9
Managing applications
Application manager
The JVM on BlackBerry® devices includes an application manager that functions as the central dispatcher of
operating system events for other Java™ applications.
The net.rim.device.api.system.ApplicationManager class lets applications interact with the application
manager to perform the following actions:
interact with processes, such as retrieving the IDs for foreground applications
post global events to the system
run an application immediately or at a specific time
Retrieve information about applications
Application manager
Retrieve information about applications
Register applications when the BlackBerry device starts
Communicate with other applications
Determine the services that are available to BlackBerry applications
Listen for changes to IT policies
Managing code modules
Runtime store
Share runtime objects
Task Steps
Retrieve information about the
processes that are running.
>Invoke ApplicationManager.getVisibleApplications().
ApplicationManager manager =
ApplicationManager.getApplicationManager();
ApplicationDescriptor descriptors[] =
manager.getVisibleApplications();
Retrieve descriptions of the objects for
the applications that are running.
>Invoke getName().
String appname1 = descriptors[0].getName();
Retrieve a description of the current
application.
>Invoke ApplicationDescriptor.currentApplicationDescriptor().
ApplicationDescriptor descriptor =
ApplicationDescriptor.currentApplicationDescriptor();