Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Guía para resolver problemas Pagina 147

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 286
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 146
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();
Vista de pagina 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 285 286

Comentarios a estos manuales

Sin comentarios