developing an application with j2me technology n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Developing an Application with J2ME Technology PowerPoint Presentation
Download Presentation
Developing an Application with J2ME Technology

Loading in 2 Seconds...

play fullscreen
1 / 23
cricket

Developing an Application with J2ME Technology - PowerPoint PPT Presentation

107 Views
Download Presentation
Developing an Application with J2ME Technology
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. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Developing an Application with J2ME Technology Scott Palmer, Nat Panchee, Judy Sullivan, Karen Thabet, Sten Westgard

  2. Java -“One size does not fit all”

  3. Java Technology - Editions Memory footprint decreases

  4. J2ME - Characteristics • J2ME maintains qualities of Java Technology • Consistency across products • Portability of code

  5. J2ME - Characteristics • Run anywhere, anytime and on any device • Safe network delivery • Upward scalability with J2SE and J2EE technology • OOP base language

  6. What is a Configuration? • Specifies Java Programming language features supported • Specifies the JVM features supported • Specifies the basic Java libraries and APIs supported

  7. J2ME Configurations • Connected Device Configuration (CDC) • Connected Limited Device Configuration (CLDC) • Purpose: • CDC – High end consumer devices • CDLC – Low end consumer devices

  8. Java2 Micro Edition - Architecture

  9. CDC • 32 bit processor • >.5MB (ROM+RAM) • JVM support • High bandwidth network connectivity • Devices include: • Communicators • Next Generation Smart Phones • Home Appliances • Car Navigation Systems

  10. CLDC • 16-32 bit processor • >160-512kB (ROM+RAM) • KVM support • Limited power/battery, network, GUI, Java class libraries • Devices include: • Cell phones • Personal Digital Assistants • Pagers

  11. America Online Bull Ericsson Fujitsu Matsushita Mitsubishi Motorola Nokia NTT DoCoMo Oracle Palm Computing RIM Samsung Sharp Siemens Sony SunMicrosystems Symbian CLDC Expert Group

  12. CLDC Packages • CLDC packages: • java.lang • java.io • java.util • javax.microedition.io

  13. CLDC • CLDC limitations: • No Floating-point Support • No Finalization • Error Handling Limitations • Limited Internationalization Support

  14. MIDP – Mobile Information Device Profile MIDP + CLDC = Part of J2ME Runtime Environment MIDP addresses: • User Interface • Persistent storage • Networking • Application model

  15. MIDP Packages MIDP Packages: • javax.micoredition.io • javax.microedition.midlet • javax.microedition.lcdui • javax.microedition.rms

  16. What is a MIDlet? • MIDP Application = MIDlet • MIDlet is similar to applet. • MIDlet Structure: • startApp() • pauseApp() • destroyApp(boolean unconditional)

  17. Paused pauseApp( ) startApp( ) Active destroyApp( ) destroyApp( ) Destroyed MIDlet’s Life Cycle

  18. Hello Midlet import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class HelloMidlet extends MIDlet { private Display display; TextBox box = null; public HelloMidlet() { } public void startApp() { display = display.getDisplay(this); box = new TextBox("Midlet Example", "Hello CS616", 20, 0); display.setCurrent(box); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } }

  19. Hello Midlet

  20. J2ME Wireless Toolkit

  21. Developer Opportunities • Mobile Internet services • Value added services • Business to business apps

  22. A Wireless “Safe Home”

  23. Java Enabled Device Future “In 2002, Nokia will deliver more than 50 million Java enable phones; more than 100 million deliveries by end of 2003.” Pekka Ala-Pietila, Nokia President, JavaOne, 2001