J2ME GUI Programming

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    5 Favorites

    J2ME GUI Programming - Presentation Transcript

    1. J2ME : GUI Programming Rohan Chandane rohan.chandane@gmail.com These notes are created by me, Rohan Chandane as learning material while pursuing MSc(CA) from SICSR 2005-2007 (CC)
    2. Use of Profile For GUI Programming we can use different Profiles Here, we will see Mobile Information Device Profile (MIDP)
    3. 3 things in MIDP MIDlets High-Level API Low-Level API
    4. MIDlets All application using MIDP, derived from package javax.microedition.midlet
    5. Continued… A MIDlet can exist in four different states Loaded MIDlet is loaded into the device The constructor is called, This is called the loaded state Active After loaded state of MIDlet, it is in the active state Until its paused or destroyed
    6. Continued… Paused Applications should stop animations Release resources that are not needed This state avoids Resource conflicts with the application running in the foreground Unnecessary battery consumption Destroyed MIDlet gets Terminated
    7. MIDlet life cycle
    8. Continued… startApp() The program manager starts the application by calling the startApp() method, then MIDlet get loaded pauseApp() Pauses the MIDlet
    9. Continued… destroyApp() provides an unconditional parameter If false - MIDlet is allowed to refuse its termination & Throws MIDletStateChangeException resumeRequest() - If a MIDlet need to resume activity, this informs application manager
    10. Continued… notifyPaused() - If a MIDlet need to go to the paused state, this informs application manager notifyDestroyed() – In order to terminate, this informs application manager
    11. User Interface Architecture MIDP 2.0 has two UI Package javax.microedition.lcdui lcdui - Liquid Crystal Display User Interface javax.microedition.lcdui.game For development of a wireless game UI
    12. Continued… javax.microedition.lcdui divided into two logical groups High Level Group Low Level Group
    13. Continued… High Level Group Classes provided are Perfect for development of MIDlets that target the maximum number of devices Heavily abstracted to provide minimal control over their look and feel Classes do not provide exact control over their display
    14. Continued… High Level MIDP 2.0 UI classes
    15. Continued… Low Level Group Classes provided are Perfect for MIDlets where we want precise control over the location and display of the UI elements If more control there is comes less portability It may not be deployable on certain devices
    16. Continued… Low Level MIDP 2.0 UI classes And GameCanvas
    17. Displayable Interface To show a UI element on a device screen Displayable Interface must implemented in Midlet Whether high or low level APIs, it have to implement Displayable Interface The Graphics class does not implement this interface Because it deals with low-level 2D graphics that directly manipulate the device's screen
    18. Continued… Canvas and Screen implement the Displayable interface
    19. High-Level API Event handling Two Categories of Events Command events Command events are triggered by key presses on the device Item events Item events are the result of visual components changing on the display

    + Rohan ChandaneRohan Chandane, 2 years ago

    custom

    3153 views, 5 favs, 3 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3153
      • 3123 on SlideShare
      • 30 from embeds
    • Comments 0
    • Favorites 5
    • Downloads 36
    Most viewed embeds
    • 27 views on http://mycodefactory.blogspot.com
    • 2 views on http://static.slideshare.net
    • 1 views on http://www.mefeedia.com

    more

    All embeds
    • 27 views on http://mycodefactory.blogspot.com
    • 2 views on http://static.slideshare.net
    • 1 views on http://www.mefeedia.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories