1 / 8

Understanding the Structure of MIDlets: A Basic and Detailed Overview

This guide provides an in-depth understanding of the structure of MIDlets in Java ME. It covers both a simple version and a more detailed explanation of the MIDlet lifecycle, including key methods such as startApp(), pauseApp(), and destroyApp(). You'll learn about state changes in MIDlets, handling exceptions, and properties related to the MIDlet. Additionally, the role of Application Management Software (AMS) is explored, along with essential permissions and platform requests, offering comprehensive insights for developers working with mobile applications.

Télécharger la présentation

Understanding the Structure of MIDlets: A Basic and Detailed Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MIDP og MIDlets

  2. Grundlæggende MIDlet struktur BasicMidlet: • Simpel udgave • Mere detaljeret udgave

  3. MIDlet tilstandsgram

  4. Tilstandsændringer

  5. class MIDlet Fra package javax.microedition.midlet:: public abstract class MIDlet protected MIDlet() {...} protected abstract void startApp() throws MIDletStateChangeException; protected abstract void pauseApp(); protected abstract void destroyApp(boolean unconditional) throws MIDletStateChangeException; public final void notifyDestroyed() {...} public final void notifyPaused() {...} public final String getAppProperty(String key) {...} public final void resumeRequest() {...} public final boolean platformRequest(String URL) throws ConnectionNotFoundException {...} public final int checkPermission(String permission) {...} public class MIDletStateChangeException extends Exception public MIDletStateChangeException() {...} public MIDletStateChangeException(String s) {...}

  6. MIDlet AMS (Application Management Software) notifyDestroyed() notifyPaused() resumeRequest() getAppProperty() platformRequest() checkPermission() startApp() pauseApp() destroyApp() AMS (Application Management Software)

  7. MIDlet package HelloMIDlet • source kode • jad- og MF filer

More Related