SlideShare a Scribd company logo
2
Most read
8
Most read
9
Most read
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.

Introduction to Mobile programming(J2ME)
 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
Introduction to Mobile programming(J2ME)
 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

PPTX
Devices and gateways
PDF
Computational models in embedded design
ODP
image compression ppt
PPTX
Architecture of operating system
PPTX
Bit plane coding
PPT
Multiprocessor Systems
PPT
WSN IN IOT
PPT
Data compression
Devices and gateways
Computational models in embedded design
image compression ppt
Architecture of operating system
Bit plane coding
Multiprocessor Systems
WSN IN IOT
Data compression

What's hot (20)

PDF
IEEE 802.11 Architecture and Services
PPTX
Dynamic storage allocation techniques in Compiler design
PPT
data hiding techniques.ppt
PPTX
Operating system paging and segmentation
PPTX
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
PDF
Raspberry Pi
PPTX
Network Layer design Issues.pptx
PPTX
wireless network IEEE 802.11
PPTX
Status register
PPTX
IoT-A ARM
PDF
Overview of IoT and Security issues
PPTX
Grid protocol architecture
PPTX
Multiplexing in mobile computing
PPTX
Multimedia lossy compression algorithms
PPTX
Destination Sequenced Distance Vector Routing (DSDV)
PDF
Image Restoration (Digital Image Processing)
PPTX
Wsn state-centric programming
PDF
EE6602 Embedded System
PPT
Interpixel redundancy
PPTX
Image compression standards
IEEE 802.11 Architecture and Services
Dynamic storage allocation techniques in Compiler design
data hiding techniques.ppt
Operating system paging and segmentation
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
Raspberry Pi
Network Layer design Issues.pptx
wireless network IEEE 802.11
Status register
IoT-A ARM
Overview of IoT and Security issues
Grid protocol architecture
Multiplexing in mobile computing
Multimedia lossy compression algorithms
Destination Sequenced Distance Vector Routing (DSDV)
Image Restoration (Digital Image Processing)
Wsn state-centric programming
EE6602 Embedded System
Interpixel redundancy
Image compression standards
Ad

Viewers also liked (8)

PPTX
Cloud Computing
PPT
Java card technology
PPTX
PPT on Basic of Gateway
PPT
WAP 2.0
PPT
Mobile Computing UNIT-8
PPT
Java card technology
PPT
Mobile agents
PPT
Mobile Computing UNIT-I TO III
Cloud Computing
Java card technology
PPT on Basic of Gateway
WAP 2.0
Mobile Computing UNIT-8
Java card technology
Mobile agents
Mobile Computing UNIT-I TO III
Ad

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

PDF
010118565.pdf
PPTX
PPT
Java ME CLDC MIDP
PPTX
Java J2ME
PPT
PPT
MOBILE APPs DEVELOPMENT PLATFORMS
PPT
PPT
Mobile Application Development MAD J2ME
PPTX
J2me Platform
PDF
Introduction to java micro edition
PPT
J2 me 1
PPTX
Blackberry Development Environment
PPT
Mobile Java
PPTX
J2ME mobile app development
PPT
J2ME-java-training-document-internal.ppt
PPT
Introduction to Mobile Application Development
PDF
PPTX
Mobile operating system..
PPTX
PPT
A Taste of Java ME
010118565.pdf
Java ME CLDC MIDP
Java J2ME
MOBILE APPs DEVELOPMENT PLATFORMS
Mobile Application Development MAD J2ME
J2me Platform
Introduction to java micro edition
J2 me 1
Blackberry Development Environment
Mobile Java
J2ME mobile app development
J2ME-java-training-document-internal.ppt
Introduction to Mobile Application Development
Mobile operating system..
A Taste of Java ME

Recently uploaded (20)

PDF
Basic Mud Logging Guide for educational purpose
PDF
PSYCHOLOGY IN EDUCATION.pdf ( nice pdf ...)
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Onica Farming 24rsclub profitable farm business
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Introduction and Scope of Bichemistry.pptx
PDF
English Language Teaching from Post-.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Business Ethics Teaching Materials for college
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Structure & Organelles in detailed.
Basic Mud Logging Guide for educational purpose
PSYCHOLOGY IN EDUCATION.pdf ( nice pdf ...)
O7-L3 Supply Chain Operations - ICLT Program
Onica Farming 24rsclub profitable farm business
FourierSeries-QuestionsWithAnswers(Part-A).pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Introduction and Scope of Bichemistry.pptx
English Language Teaching from Post-.pdf
human mycosis Human fungal infections are called human mycosis..pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Business Ethics Teaching Materials for college
Open Quiz Monsoon Mind Game Prelims.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Renaissance Architecture: A Journey from Faith to Humanism
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Microbial disease of the cardiovascular and lymphatic systems
Cell Structure & Organelles in detailed.

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. 
  • 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
  • 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