SlideShare a Scribd company logo
1 of 18
PROGRAMMING WITH J2ME
Mr. A.W.Wambua
Sun Microsystems has defined three Java
platforms, to the needs of different of
computing environments:
 • Java 2 Standard Edition (J2SE)-(Desktops)
 • Java 2 Enterprise Edition (J2EE)-(server-client)
 • Java 2 Micro Edition (J2ME)-(Small computing
Devices eg Mobiles,PDAs,etc)
 J2ME : a reduced version of the Java API and
Java Virtual Machine that is designed to operate
within the sparse resources available in the new
breed of embedded computers and microcomputers.

 Small

computing devices differ greatly eg: in
terms of Memory, Storage Capability, display
and connectivity
 To address this, Java Community Process
Program( Sun’s group mandated to create
J2ME) came up with an achitecture.
 The J2ME architecture comprises three
software layers
1. Configuration layer
2. Profile Layer
3. Mobile Information Device Profile (MIDP)
Layer
J2ME ARCHITECTURAL LAYERS
 Basically

the Architecture comprises
 J2ME Configurations
 J2ME Profiles.
Configuration: defines the Java Virtual
Machine for a particular small computing
device.
2 configurations exist.
1. Connected Limited Device Configuration
(CLDC)
2. Connected Device Configuration (CDC).
16-bit or 32-bit small computing devices with
limited amounts of memory.
 160KB to 512KB of available memory .
 Battery powered.
 Use an inconsistent, small-bandwidth network
wireless connection
 May not have a user interface.
 Use the KJava Virtual Machine (KVM)
implementation, which is a stripped-down
version of the JVM.
 They include pagers, personal digital assistants,
cell phones, dedicated terminals, and handheld
consumer devices with between 128KB and
512KB of memory.

 CDC

devices use a 32-bit architecture.
 At least 2MB of memory available.
 Implement a complete functional JVM.
 They include digital set-top boxes, home
appliances, navigation systems, point-of-sale
terminals, and smart phones.
A profile: consists of Java classes that enable
implementation of features for either a
particular small computing device or for a
class of small computing devices.
Several profiles exist.
I.
Foundation Profile.
II.
Game Profile.
III.
Mobile Information Device Profile.
IV.
PDA Profile.
V.
Personal Profile.
VI. Personal Basis Profile.
VII. RMI Profile.
 The

most popular and well known of all the
profiles is the Mobile Information Device
Profile (MIDP), sometimes called the MID
Profile.
 The MIDP layers and the CLDC and defines a
set of user interface (UI) APIs designed for
contemporary wireless devices.
 MIDP applications are called MIDlets.
 A MIDlet is a Java application that uses the
MIDP profile and the CLDC configuration.
screen size at least 96x54 pixels
 display depth of 1 bit
 One or two-handed keyboard, touch screen
input device
 128 KB nonvolatile memory for MIDP
components
 8 KB nonvolatile memory for applicationpersistent data(DB)
 32 KB volatile runtime memory for Java heap
 two-way wireless connectivity

The MIDP, specifies the following APIs:
 application (MIDP application semantics and
control)
 user interface
 persistent storage
 networking
 Timers










MIDP Package
Name Description
javax.microedition.lcdui
UI classes and
interfaces
javax.microedition.rms
Record management
system (RMS) supporting persistent device storage
javax.microedition.midlet
MIDP application
definition support class types
javax.microedition.io MIDP generic connection
framework classes and interfaces
java.io
Standard Java IO classes and interfaces
java.lang
VM classes and interfaces
java.util
Standard utility classes and interfaces
A

single application could have many Midlets.
 Midlets are bundled into a Midletsuit
contained within a single package.
 All files necessary to implement a midlet suit
are contained in a production package called
JAR(Java Archive)
These include;- Midlet classes, Icons and the
manifest file.
Manifest file has information required by the
Application manager to handle the midlets
such as name , version ,vendor ..etc
 Java

application descriptor (JAD) file can be
included within the JAR.
 Used to pass parameters to a MIDlet without
modifying the JAR file .
 Provides the application manager with
additional content information about the JAR
file to determine whether the MIDlet suite
can be implemented on the device.
 Attributes include : name , vendor,version of
the midlet.
 Code

to Implement “Hello Word “ program
 What

is J2ME,How does it differ from J2EE?
 Explain the architecture of J2ME
 What is a Profile?
 What is a Configuration?
 Compare CDC devices to CDLC devices giving
examples of each device category
 What is a MIDLET?
 What is MIDP?
 What are the Java Packages used in MIDP and
their functions.
 Differentiate JAR from JAD files

More Related Content

What's hot

Wireless transmission
Wireless transmissionWireless transmission
Wireless transmissionSaba Rathinam
 
TCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer DescriptionTCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer DescriptionShubham Khedekar
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 
Architecture of Mobile Computing
Architecture of Mobile ComputingArchitecture of Mobile Computing
Architecture of Mobile ComputingJAINIK PATEL
 
Controlled Access Protocols
Controlled Access ProtocolsControlled Access Protocols
Controlled Access ProtocolsPruthviraj Konu
 
Wireless LAN security
Wireless LAN securityWireless LAN security
Wireless LAN securityRajan Kumar
 
Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcpMohd Arif
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layerNaiyan Noor
 
Multiple Access in Computer Network
Multiple Access in Computer NetworkMultiple Access in Computer Network
Multiple Access in Computer NetworkHitesh Mohapatra
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network LayerRahul Hada
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication ProtocolsPradeep Kumar TS
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission mediaManish8976
 
TCP over wireless slides
TCP over wireless slidesTCP over wireless slides
TCP over wireless slidesMahesh Rajawat
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolAnushka Patil
 

What's hot (20)

Ad-Hoc Networks
Ad-Hoc NetworksAd-Hoc Networks
Ad-Hoc Networks
 
Wireless transmission
Wireless transmissionWireless transmission
Wireless transmission
 
TCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer DescriptionTCP/IP Protocols With All Layer Description
TCP/IP Protocols With All Layer Description
 
WLAN
WLANWLAN
WLAN
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Architecture of Mobile Computing
Architecture of Mobile ComputingArchitecture of Mobile Computing
Architecture of Mobile Computing
 
Controlled Access Protocols
Controlled Access ProtocolsControlled Access Protocols
Controlled Access Protocols
 
Wireless LAN security
Wireless LAN securityWireless LAN security
Wireless LAN security
 
Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcp
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Multiple Access in Computer Network
Multiple Access in Computer NetworkMultiple Access in Computer Network
Multiple Access in Computer Network
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication Protocols
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission media
 
Gprs architecture
Gprs architectureGprs architecture
Gprs architecture
 
Gsm architecture
Gsm architectureGsm architecture
Gsm architecture
 
TCP over wireless slides
TCP over wireless slidesTCP over wireless slides
TCP over wireless slides
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access Protocol
 
Ch1
Ch1Ch1
Ch1
 
Handover
HandoverHandover
Handover
 

Viewers also liked

Java card technology
Java card technologyJava card technology
Java card technologyAmol Kamble
 
PPT on Basic of Gateway
PPT on Basic of GatewayPPT on Basic of Gateway
PPT on Basic of GatewayNaveen Karn
 
Mobile Computing UNIT-8
Mobile Computing UNIT-8Mobile Computing UNIT-8
Mobile Computing UNIT-8Ramesh Babu
 
Mobile Computing UNIT-I TO III
Mobile Computing UNIT-I TO IIIMobile Computing UNIT-I TO III
Mobile Computing UNIT-I TO IIIRamesh Babu
 

Viewers also liked (8)

Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Java card technology
Java card technologyJava card technology
Java card technology
 
PPT on Basic of Gateway
PPT on Basic of GatewayPPT on Basic of Gateway
PPT on Basic of Gateway
 
WAP 2.0
WAP 2.0WAP 2.0
WAP 2.0
 
Mobile Computing UNIT-8
Mobile Computing UNIT-8Mobile Computing UNIT-8
Mobile Computing UNIT-8
 
Java card technology
Java card technologyJava card technology
Java card technology
 
Mobile agents
Mobile agentsMobile agents
Mobile agents
 
Mobile Computing UNIT-I TO III
Mobile Computing UNIT-I TO IIIMobile Computing UNIT-I TO III
Mobile Computing UNIT-I TO III
 

Similar to Introduction to Mobile programming(J2ME)

Similar to Introduction to Mobile programming(J2ME) (20)

010118565.pdf
010118565.pdf010118565.pdf
010118565.pdf
 
J2ME
J2MEJ2ME
J2ME
 
Java ME CLDC MIDP
Java ME CLDC MIDPJava ME CLDC MIDP
Java ME CLDC MIDP
 
Java J2ME
Java J2MEJava J2ME
Java J2ME
 
J2ME
J2MEJ2ME
J2ME
 
MOBILE APPs DEVELOPMENT PLATFORMS
MOBILE APPs DEVELOPMENT PLATFORMSMOBILE APPs DEVELOPMENT PLATFORMS
MOBILE APPs DEVELOPMENT PLATFORMS
 
J2me
J2meJ2me
J2me
 
Mobile Application Development MAD J2ME
Mobile Application Development  MAD J2MEMobile Application Development  MAD J2ME
Mobile Application Development MAD J2ME
 
J2me Platform
J2me PlatformJ2me Platform
J2me Platform
 
Introduction to java micro edition
Introduction to java micro editionIntroduction to java micro edition
Introduction to java micro edition
 
J2 me 1
J2 me 1J2 me 1
J2 me 1
 
Blackberry Development Environment
Blackberry Development EnvironmentBlackberry Development Environment
Blackberry Development Environment
 
Mobile Java
Mobile JavaMobile Java
Mobile Java
 
J2ME mobile app development
J2ME mobile app developmentJ2ME mobile app development
J2ME mobile app development
 
Introduction to Mobile Application Development
Introduction to Mobile Application DevelopmentIntroduction to Mobile Application Development
Introduction to Mobile Application Development
 
J2 Me
J2 MeJ2 Me
J2 Me
 
Mobile operating system..
Mobile operating system..Mobile operating system..
Mobile operating system..
 
J2ME
J2MEJ2ME
J2ME
 
A Taste of Java ME
A Taste of Java MEA Taste of Java ME
A Taste of Java ME
 
J2me
J2meJ2me
J2me
 

Recently uploaded

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 

Recently uploaded (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 

Introduction to Mobile programming(J2ME)

  • 2. Sun Microsystems has defined three Java platforms, to the needs of different of computing environments:  • Java 2 Standard Edition (J2SE)-(Desktops)  • Java 2 Enterprise Edition (J2EE)-(server-client)  • Java 2 Micro Edition (J2ME)-(Small computing Devices eg Mobiles,PDAs,etc)  J2ME : a reduced version of the Java API and Java Virtual Machine that is designed to operate within the sparse resources available in the new breed of embedded computers and microcomputers. 
  • 3.
  • 4.  Small computing devices differ greatly eg: in terms of Memory, Storage Capability, display and connectivity  To address this, Java Community Process Program( Sun’s group mandated to create J2ME) came up with an achitecture.  The J2ME architecture comprises three software layers 1. Configuration layer 2. Profile Layer 3. Mobile Information Device Profile (MIDP) Layer
  • 6.  Basically the Architecture comprises  J2ME Configurations  J2ME Profiles. Configuration: defines the Java Virtual Machine for a particular small computing device. 2 configurations exist. 1. Connected Limited Device Configuration (CLDC) 2. Connected Device Configuration (CDC).
  • 7. 16-bit or 32-bit small computing devices with limited amounts of memory.  160KB to 512KB of available memory .  Battery powered.  Use an inconsistent, small-bandwidth network wireless connection  May not have a user interface.  Use the KJava Virtual Machine (KVM) implementation, which is a stripped-down version of the JVM.  They include pagers, personal digital assistants, cell phones, dedicated terminals, and handheld consumer devices with between 128KB and 512KB of memory. 
  • 8.  CDC devices use a 32-bit architecture.  At least 2MB of memory available.  Implement a complete functional JVM.  They include digital set-top boxes, home appliances, navigation systems, point-of-sale terminals, and smart phones.
  • 9. A profile: consists of Java classes that enable implementation of features for either a particular small computing device or for a class of small computing devices. Several profiles exist. I. Foundation Profile. II. Game Profile. III. Mobile Information Device Profile. IV. PDA Profile. V. Personal Profile. VI. Personal Basis Profile. VII. RMI Profile.
  • 10.  The most popular and well known of all the profiles is the Mobile Information Device Profile (MIDP), sometimes called the MID Profile.  The MIDP layers and the CLDC and defines a set of user interface (UI) APIs designed for contemporary wireless devices.  MIDP applications are called MIDlets.  A MIDlet is a Java application that uses the MIDP profile and the CLDC configuration.
  • 11. screen size at least 96x54 pixels  display depth of 1 bit  One or two-handed keyboard, touch screen input device  128 KB nonvolatile memory for MIDP components  8 KB nonvolatile memory for applicationpersistent data(DB)  32 KB volatile runtime memory for Java heap  two-way wireless connectivity 
  • 12. The MIDP, specifies the following APIs:  application (MIDP application semantics and control)  user interface  persistent storage  networking  Timers
  • 13.         MIDP Package Name Description javax.microedition.lcdui UI classes and interfaces javax.microedition.rms Record management system (RMS) supporting persistent device storage javax.microedition.midlet MIDP application definition support class types javax.microedition.io MIDP generic connection framework classes and interfaces java.io Standard Java IO classes and interfaces java.lang VM classes and interfaces java.util Standard utility classes and interfaces
  • 14. A single application could have many Midlets.  Midlets are bundled into a Midletsuit contained within a single package.  All files necessary to implement a midlet suit are contained in a production package called JAR(Java Archive) These include;- Midlet classes, Icons and the manifest file. Manifest file has information required by the Application manager to handle the midlets such as name , version ,vendor ..etc
  • 15.  Java application descriptor (JAD) file can be included within the JAR.  Used to pass parameters to a MIDlet without modifying the JAR file .  Provides the application manager with additional content information about the JAR file to determine whether the MIDlet suite can be implemented on the device.  Attributes include : name , vendor,version of the midlet.
  • 16.  Code to Implement “Hello Word “ program
  • 17.
  • 18.  What is J2ME,How does it differ from J2EE?  Explain the architecture of J2ME  What is a Profile?  What is a Configuration?  Compare CDC devices to CDLC devices giving examples of each device category  What is a MIDLET?  What is MIDP?  What are the Java Packages used in MIDP and their functions.  Differentiate JAR from JAD files