80 likes | 170 Views
MIDP og MIDlets. Grundlæggende MIDlet struktur. BasicMidlet: Simpel udgave Mere detaljeret udgave. MIDlet tilstandsgram. Tilstandsændringer. class MIDlet. Fra package javax.microedition.midlet:: public abstract class MIDlet protected MIDlet() {...} protected abstract void startApp()
E N D
Grundlæggende MIDlet struktur BasicMidlet: • Simpel udgave • Mere detaljeret udgave
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) {...}
MIDlet AMS (Application Management Software) notifyDestroyed() notifyPaused() resumeRequest() getAppProperty() platformRequest() checkPermission() startApp() pauseApp() destroyApp() AMS (Application Management Software)
MIDlet package HelloMIDlet • source kode • jad- og MF filer