Como inicializar programacion de moviles

Solo disponible en BuenasTareas
  • Páginas : 4 (756 palabras )
  • Descarga(s) : 0
  • Publicado : 15 de mayo de 2011
Leer documento completo
Vista previa del texto
LA CLASE MIDlet: LA MADRE DE TODOS

Todo desarrollo en J2ME tiene una base, esta base es la clase MIDlet.

Echemosle un vistazo a la documentación de SUN MicroSystems..."javax.microedition.midlet Class MIDlet
java.lang.Object ---------> javax.microedition.midlet.MIDlet

public abstract class MIDlet extends Object

A MIDlet is a MID Profile application. The application must extendthis class to allow the application management software to control the MIDlet and to be able to retrieve properties from the application descriptor and notify and request state changes. The methods ofthis class allow the application management software to create, start, pause, and destroy a MIDlet. A MIDlet is a set of classes designed to be run and controlled by the application management softwarevia this interface. The states allow the application management software to manage the activities of multiple MIDlets within a runtime environment. It can select which MIDlets are active at a giventime by starting and pausing them individually. The application management software maintains the state of the MIDlet and invokes methods on the MIDlet to notify the MIDlet of change states. The MIDletimplements these methods to update its internal activities and resource usage as directed by the application management software. The MIDlet can initiate some state changes itself and notifies theapplication management software of those state changes by invoking the appropriate methods.
Note: The methods on this interface signal state changes. The state change is not considered complete untilthe state change method has returned. It is intended that these methods return quickly."

Para todos aquellos que no mastican muy bien el inglés, no se preocupen; lo más importante lo veremos pormedio de ejemplos.

La clase MIDlet cuenta con tres métodos protegidos, ésto significa, no pueden faltar, y son los siguientes:

startApp()

pauseApp()

destroyApp(boolean unconditional)

El...
tracking img