SlideShare uma empresa Scribd logo
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

Mais conteúdo relacionado

Mais procurados

Mobile computing unit 5
Mobile computing  unit 5Mobile computing  unit 5
Mobile computing unit 5
Assistant Professor
 
Geographic Routing in WSN
Geographic Routing in WSNGeographic Routing in WSN
Geographic Routing in WSN
Mahbubur Rahman
 
The Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFiThe Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFi
Mostafa Ali
 
ENCAPSULATION AND TUNNELING
ENCAPSULATION AND TUNNELINGENCAPSULATION AND TUNNELING
ENCAPSULATION AND TUNNELING
Mohammad Adil
 
Application development for the internet of things
Application development for the internet of thingsApplication development for the internet of things
Application development for the internet of things
Pankesh Patel
 
CS8601 MOBILE COMPUTING
CS8601 MOBILE COMPUTING CS8601 MOBILE COMPUTING
CS8601 MOBILE COMPUTING
Kathirvel Ayyaswamy
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
Naiyan Noor
 
Multiple Access in wireless communication
Multiple Access in wireless communicationMultiple Access in wireless communication
Multiple Access in wireless communication
Maulik Togadiya
 
Gprs architecture ppt
Gprs architecture pptGprs architecture ppt
Gprs architecture ppt
Arpita Sanghani
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
Sayed Chhattan Shah
 
Lecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networksLecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networks
Chandra Meena
 
Mobile Communication
Mobile CommunicationMobile Communication
Mobile Communication
Kathirvel Ayyaswamy
 
Gsm security and encryption
Gsm security and encryptionGsm security and encryption
Gsm security and encryption
RK Nayak
 
Introduction To Mobile Computing
Introduction To Mobile ComputingIntroduction To Mobile Computing
Introduction To Mobile Computing
Madhuri Badgujar
 
Mac protocols
Mac protocolsMac protocols
Mac protocols
juno susi
 
A Reference architecture for the Internet of things
A Reference architecture for the Internet of things A Reference architecture for the Internet of things
A Reference architecture for the Internet of things
WSO2
 
Javacard
Javacard Javacard
Javacard
Samiksha90
 
GPRS
GPRSGPRS
Mobile Application Development MAD J2ME UNIT 2
Mobile Application Development  MAD J2ME UNIT 2Mobile Application Development  MAD J2ME UNIT 2
Mobile Application Development MAD J2ME UNIT 2
Pallepati Vasavi
 
Linux in mobile devices
Linux in mobile devicesLinux in mobile devices
Linux in mobile devices
CHESStest{perfect Kadhu}
 

Mais procurados (20)

Mobile computing unit 5
Mobile computing  unit 5Mobile computing  unit 5
Mobile computing unit 5
 
Geographic Routing in WSN
Geographic Routing in WSNGeographic Routing in WSN
Geographic Routing in WSN
 
The Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFiThe Differences Between Bluetooth, ZigBee and WiFi
The Differences Between Bluetooth, ZigBee and WiFi
 
ENCAPSULATION AND TUNNELING
ENCAPSULATION AND TUNNELINGENCAPSULATION AND TUNNELING
ENCAPSULATION AND TUNNELING
 
Application development for the internet of things
Application development for the internet of thingsApplication development for the internet of things
Application development for the internet of things
 
CS8601 MOBILE COMPUTING
CS8601 MOBILE COMPUTING CS8601 MOBILE COMPUTING
CS8601 MOBILE COMPUTING
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Multiple Access in wireless communication
Multiple Access in wireless communicationMultiple Access in wireless communication
Multiple Access in wireless communication
 
Gprs architecture ppt
Gprs architecture pptGprs architecture ppt
Gprs architecture ppt
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
 
Lecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networksLecture 23 27. quality of services in ad hoc wireless networks
Lecture 23 27. quality of services in ad hoc wireless networks
 
Mobile Communication
Mobile CommunicationMobile Communication
Mobile Communication
 
Gsm security and encryption
Gsm security and encryptionGsm security and encryption
Gsm security and encryption
 
Introduction To Mobile Computing
Introduction To Mobile ComputingIntroduction To Mobile Computing
Introduction To Mobile Computing
 
Mac protocols
Mac protocolsMac protocols
Mac protocols
 
A Reference architecture for the Internet of things
A Reference architecture for the Internet of things A Reference architecture for the Internet of things
A Reference architecture for the Internet of things
 
Javacard
Javacard Javacard
Javacard
 
GPRS
GPRSGPRS
GPRS
 
Mobile Application Development MAD J2ME UNIT 2
Mobile Application Development  MAD J2ME UNIT 2Mobile Application Development  MAD J2ME UNIT 2
Mobile Application Development MAD J2ME UNIT 2
 
Linux in mobile devices
Linux in mobile devicesLinux in mobile devices
Linux in mobile devices
 

Destaque

Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
Naveen Karn
 
Java card technology
Java card technologyJava card technology
Java card technology
Amol Kamble
 
PPT on Basic of Gateway
PPT on Basic of GatewayPPT on Basic of Gateway
PPT on Basic of Gateway
Naveen Karn
 
WAP 2.0
WAP 2.0WAP 2.0
WAP 2.0
Ramasubbu .P
 
Mobile Computing UNIT-8
Mobile Computing UNIT-8Mobile Computing UNIT-8
Mobile Computing UNIT-8
Ramesh Babu
 
Java card technology
Java card technologyJava card technology
Java card technology
Keerthi Thomas
 
Mobile agents
Mobile agentsMobile agents
Mobile agents
Santosh Pandey
 
Mobile Computing UNIT-I TO III
Mobile Computing UNIT-I TO IIIMobile Computing UNIT-I TO III
Mobile Computing UNIT-I TO III
Ramesh Babu
 

Destaque (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
 

Semelhante a Introduction to Mobile programming(J2ME)

010118565.pdf
010118565.pdf010118565.pdf
010118565.pdf
EidTahir
 
J2ME
J2MEJ2ME
Java ME CLDC MIDP
Java ME CLDC MIDPJava ME CLDC MIDP
Java ME CLDC MIDP
SMIJava
 
Java J2ME
Java J2MEJava J2ME
Java J2ME
marada0033
 
J2ME
J2MEJ2ME
MOBILE APPs DEVELOPMENT PLATFORMS
MOBILE APPs DEVELOPMENT PLATFORMSMOBILE APPs DEVELOPMENT PLATFORMS
MOBILE APPs DEVELOPMENT PLATFORMS
Senthil Kanth
 
J2me
J2meJ2me
Mobile Application Development MAD J2ME
Mobile Application Development  MAD J2MEMobile Application Development  MAD J2ME
Mobile Application Development MAD J2ME
Pallepati Vasavi
 
J2me Platform
J2me PlatformJ2me Platform
J2me Platform
Kamal Patel
 
Introduction to java micro edition
Introduction to java micro editionIntroduction to java micro edition
Introduction to java micro edition
Raphael Wanjiku
 
J2 me 1
J2 me 1J2 me 1
J2 me 1
myrajendra
 
Blackberry Development Environment
Blackberry Development EnvironmentBlackberry Development Environment
Blackberry Development Environment
Predhin Sapru
 
Mobile Java
Mobile JavaMobile Java
Mobile Java
Nikita Makarov
 
J2ME mobile app development
J2ME mobile app developmentJ2ME mobile app development
J2ME mobile app development
Muthu Kumar
 
Introduction to Mobile Application Development
Introduction to Mobile Application DevelopmentIntroduction to Mobile Application Development
Introduction to Mobile Application Development
Senthil Kanth
 
J2 Me
J2 MeJ2 Me
Mobile operating system..
Mobile operating system..Mobile operating system..
Mobile operating system..
Aashish Uppal
 
A Taste of Java ME
A Taste of Java MEA Taste of Java ME
A Taste of Java ME
wiradikusuma
 
J2me
J2meJ2me
Introduction To J2ME(FT - Prasanjit Dey)
Introduction To J2ME(FT - Prasanjit Dey)Introduction To J2ME(FT - Prasanjit Dey)
Introduction To J2ME(FT - Prasanjit Dey)
Fafadia Tech
 

Semelhante a 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..
 
A Taste of Java ME
A Taste of Java MEA Taste of Java ME
A Taste of Java ME
 
J2me
J2meJ2me
J2me
 
Introduction To J2ME(FT - Prasanjit Dey)
Introduction To J2ME(FT - Prasanjit Dey)Introduction To J2ME(FT - Prasanjit Dey)
Introduction To J2ME(FT - Prasanjit Dey)
 

Último

RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 

Último (20)

RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 

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