Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
J2ME<br />
Who am I?<br />Lim Chanmann<br />Software Developer<br />Email: chanmannlim@gmail.com<br />Skype: lchanmann<br />Twitter: ...
What is J2ME?<br />Java 2 Micro Edition<br />Is designed to operate in limited resource device (eg. PDAs, mobile, pager)<b...
Why?<br />Cross-platform<br />Wide-range support device<br />Easy to start<br />
Java Universe<br />
J2ME Universe<br />Smaller<br />Larger<br />Pager<br />Mobile <br />PDAs<br />Car Navigation Systems<br />Internet<br />ap...
J2ME Basic<br />Configuration: for specifies kind of device<br />Specifies Java Virtual Machine<br />Subset of J2SE<br />A...
Specification<br />CLDC: mobile, pager, PDA<br />160 – 512 kb memory<br />Kilobyte Virtual Machine<br />CLDC 1.0/CLDC 1.1<...
J2ME APIs in CLDC 1.1 + MIDP 2.0<br />MIDP 2.0<br />javax.microedition.lcdui<br />javax.microedition.lcdui.game<br />javax...
Examples<br />
MIDlet & Life clycle<br />MIDP application<br />Life cycle:<br />AMS (Application Management System)<br />destroyApp()<br ...
MIDlet Suite<br />Application package<br />.jar<br />MIDlets + classes + Resources + Manifest information (Version of CLDC...
User Interface with MIDP 2.0<br />Inherit from MIDlet class<br />Set current displayable object to MIDlet display<br />Dis...
Requirements<br />JDK – J2SE: http://java.sun.com/javase/downloads/index.jsp<br />Wireless Toolkit: http://java.sun.com/pr...
See in action<br />Configure development environment<br />Building Helloworld<br />Deployment<br />
References<br />Application development with J2ME by EnricoRukzio<br />http://www.j2mesalsa.com<br />http://www.java2s.com...
Upcoming SlideShare
Loading in …5
×

J2ME

4,051 views

Published on

Introduction to J2ME

Published in: Technology
  • Login to see the comments

J2ME

  1. 1. J2ME<br />
  2. 2. Who am I?<br />Lim Chanmann<br />Software Developer<br />Email: chanmannlim@gmail.com<br />Skype: lchanmann<br />Twitter: lchanmann<br />Blog: http://chanmannlim.wordpress.com<br />
  3. 3. What is J2ME?<br />Java 2 Micro Edition<br />Is designed to operate in limited resource device (eg. PDAs, mobile, pager)<br />
  4. 4. Why?<br />Cross-platform<br />Wide-range support device<br />Easy to start<br />
  5. 5. Java Universe<br />
  6. 6. J2ME Universe<br />Smaller<br />Larger<br />Pager<br />Mobile <br />PDAs<br />Car Navigation Systems<br />Internet<br />appliance<br />Set-top Box<br />
  7. 7. J2ME Basic<br />Configuration: for specifies kind of device<br />Specifies Java Virtual Machine<br />Subset of J2SE<br />Additional APIs<br />Profile: more specific than configuration<br />Based on configuration<br />Add APIs for user interface, persistent storage ,.etc<br />Optional APIs: additional functionality (Bluetooth, Messaging, Media, 3D ,.etc)<br />
  8. 8. Specification<br />CLDC: mobile, pager, PDA<br />160 – 512 kb memory<br />Kilobyte Virtual Machine<br />CLDC 1.0/CLDC 1.1<br />MIDP 2.0: mobile & pager<br />Min 128 kb RAM (Heap)<br />8kb for persistent storage<br />Input capacity, network connection<br />
  9. 9. J2ME APIs in CLDC 1.1 + MIDP 2.0<br />MIDP 2.0<br />javax.microedition.lcdui<br />javax.microedition.lcdui.game<br />javax.microedition.media<br />javax.microedition.media.control<br />javax.microedition.midlet<br />javax.microedition.pki<br />javax.microedition.rms<br />CLDC 1.1<br />java.lang<br />java.lang.ref<br />java.io<br />java.util<br />java.microedition.io<br />
  10. 10. Examples<br />
  11. 11. MIDlet & Life clycle<br />MIDP application<br />Life cycle:<br />AMS (Application Management System)<br />destroyApp()<br />Paused<br />pauseApp()<br />startApp()<br />Active<br />Destroyed<br />destroyApp()<br />
  12. 12. MIDlet Suite<br />Application package<br />.jar<br />MIDlets + classes + Resources + Manifest information (Version of CLDC & MIDP, name, version, vendor)<br />.jad<br />Same information as Manifest<br />Can be used for installation<br />
  13. 13. User Interface with MIDP 2.0<br />Inherit from MIDlet class<br />Set current displayable object to MIDlet display<br />Displayable:<br />Displayable<br />Screen<br />Canvas<br />Alert<br />TextBox<br />List<br />Form<br />
  14. 14. Requirements<br />JDK – J2SE: http://java.sun.com/javase/downloads/index.jsp<br />Wireless Toolkit: http://java.sun.com/products/sjwtoolkit/download.html<br />Editor – Eclipse (Pulsar): http://www.eclipse.org/downloads/<br />
  15. 15. See in action<br />Configure development environment<br />Building Helloworld<br />Deployment<br />
  16. 16. References<br />Application development with J2ME by EnricoRukzio<br />http://www.j2mesalsa.com<br />http://www.java2s.com<br />http://developers.sun.com/mobility/getstart/<br />http://www.java-samples.com/j2me/<br />http://today.java.net/pub/a/today/2005/02/09/j2me1.html<br />

×