Motorola C370, C550, C450 technical manual Method, Caller Purpose

Page 26

initializing state variables and preparing to be run in its constructor or startApp() methods, it may appear to be stalled to users.

The flow below depicts MIDlet State Transitions.

Starting

Application

Constructor

startApp()

Running

Application

pauseApp()

destroyApp()

notifyDestroyed()

Exit

Application

Paused

Application

The following table shows MIDlet State Transition methods.

 

Method

Caller

Purpose

 

Constructor

AMS

Initializes the MIDlet – should return quickly

 

startApp()

AMS

The startApp() method is called to start the

 

 

 

application either from a newly constructed state or from a

 

 

 

paused state.

 

 

 

If the startApp() is called from a paused state, the

 

 

 

MIDlet should not re-initialize the instance variables(unless

 

 

 

it is the desired behavior).

 

 

 

The startApp() method may be called multiple times

 

 

 

during the lifespan of the MIDlet.

 

 

 

The MIDlet may set the current display to its own

 

 

 

Displayable from the startApp() method, but is shown

 

 

 

only after the startApp() returns.

 

 

 

When exiting a paused application, the KVM calls

 

 

 

startApp() first followed by a call to

 

 

 

destroyApp()

 

 

 

 

Image 26
Contents Technical Manual Table of Contents Lcdui JAD Attributes Audience IntroductionPurpose DisclaimerReferences Date Name Reason Revision HistoryDefinitions, Abbreviations, Acronyms Acronym DescriptionDocument Overview Introduction J2ME Introduction Java 2 Platform, Micro Edition J2MEMotorola J2ME Platform Resources AvailableFile & RMS Description DisplayNetworking Java VMIntroduction to Development Developing and Packaging J2ME ApplicationsGuide to Development in J2ME Page Downloading Applications OTA ProcedureInstallation Program and Data space notes Exiting Applications Java Application Installer/De-Installer JaidStarting Applications Downloading MIDlets Error ChecksLaunching Web Session for Http Download XML Screen Renderings BombMan is back, now on your Taichi series of handsets Taichi handset New Games Application Management MIDlet LifecycleMIDlet Suite Installation MIDlet Suite De-installation MIDlet Suite Updating DestroyAppMethod Caller PurposeStartApp or the pauseApp Using startApp Java System MIDlet Control of MIDlet State TransitionsPage Network API Network ConnectionsClass Descriptions IOException when it detects a time-out condition URL FormatImplementation Notes TCP SocketsUDP Sockets Network API Lcdui DescriptionLcdui Class Hierarchy Gaming API and SoundFunctional Description BackgroundMusic Methods Using BackgroundMusicBackgroundMusic Class Gaming API containing a sound APIGameScreen Class GameScreen FieldsGameScreen Methods Public int getKeyStatesInformation, disabling key events can improve performance Using GameScreen GameScreenImageUtil Methods ImageUtil ClassImageUtil Fields Using ImageUtil RgbDataPalleteImage Methods PalleteImage ClassPalleteImage Constructor Using PalleteImage Public void setTransparentIndexint index throwsUsing Static and Animated Tiles PlayField ClassPlayField Constructor Using SpritesDefining View Windows 2N+1 2N + PlayField Methods Public void addSpriteSprite s throwsPage Public boolean collidesWithAnyTileSprite s throws Using PlayField PlayFieldSprite Class Using SoundEffectSoundEffect Class SoundEffect MethodsSprite Constructor Animation FramesSprite Drawing Sprite Methods Page Public final void drawGraphics g throws Sprites Using SpriteFileFormatNotSupportedException FileFormatNotSupportedException Constructors Java Gaming Sound APIMax Midi Extension Support Java Gaming Sound APIVibe and Backlight Vibe and Backlight APIOverview Creating a MessageSending a Message PermissionsJAD Attributes JAD AttributesMandatory attributes for manifest files MIDlet-Name Code Examples Record Management SystemClass Description RecordStoreTips CaveatsPhonebook Access Phonebook Access APIPhonebook Access API Permissions Sample of code to create object of PhoneBookRecord classSimmemory Sample of code for calling of ‘getMaxEmailLength ’ method Sample of code for calling of ‘isPrimaryint speedNo’ method Sample of code for calling of ‘getNumberCategories’ method Sample of code for calling of ‘setCategoryView’ method Sample of code for calling of ‘getUsedRecords’ method Int index = ReceivedRecord.getRecord1 ITAP Intelligent Keypad Text Entry APIAppendix a Key Mapping Key Mapping for the C370, C450, and C550Center Select END Appendix B Memory Management Calculation Available MemoryOnline FAQ Appendix CAppendix D Spec Sheets C370, C450, and C550 Spec SheetsReferences Purchase Motorola Developer Information ToolsDocumentation Motorola Developer Information Tools Motorola, Inc
Related manuals
Manual 110 pages 1.04 Kb