03 midp

17

Click here to load reader

Upload: corneliuskoo

Post on 14-Jan-2015

508 views

Category:

Technology


2 download

DESCRIPTION

J2ME MIDP

TRANSCRIPT

Page 1: 03 midp

Mobile Information Device

Profile

Cornelius Koo - 2005

Page 2: 03 midp

Hardware Requirements

• Screen dimension at least 96x54 pixels

• At least one type of user input available, eg. one handed keyboard

• 128 kb non-volatile memory to run Mobile Information Device (MID) components

• At least 8 kb of non-volatile memory for applications to store persistent data

• 32 kb of volatile memory to run Java

• Wireless network connectivity

Page 3: 03 midp

Software Requirements

• OS running on device must provide minimal scheduling, exception handling and processing of interrupts.

• Able to run JVM

• Must support writing of bitmapped graphics to the display

• The software must accept input and pass the information to the JVM

• able to read and write to/from non-volatile memory

Page 4: 03 midp

MIDP Architecture

OEM = Original Equipment Manufacturer

Page 5: 03 midp

MIDlet & MIDlet Suite

• MIDlet : Java App. Designed to be run on

mobile application

• MIDlet Suite : Consists of on or more

MIDlet packaged on .jar file

Page 6: 03 midp

Application Manager

• Software on a mobile device that is

responsible for installing, running and

removing MIDlets

• This software is device-dependent

Page 7: 03 midp

Application Manager

• When Application Manager runs it will

make these available :

• Access to CLDC & JVM

• Access to MIDP defined class

• Access to JAR file

• Access to Java Application Descriptor File

Page 8: 03 midp

MIDlet Java Archive (JAR)

Page 9: 03 midp

Six Must-Exist Entry

• MIDlet-Name

• MIDlet-Version

• MIDlet-Vendor

• MIDlet-<n>

• MicroEdition-Profile

• MicroEdition-Configuration

Must exist in the Manifest file

Page 10: 03 midp

JAR MIDlet Attributes

Page 11: 03 midp

Example

Manifest-Version: 1.0

MicroEdition-Configuration: CLDC-1.0

MIDlet-Name: Basic Midlets Midlet Suite

MIDlet-Vendor: Midlet Suite Vendor

MIDlet-1: HelloWorld,,HelloWorld

MIDlet-2: HelloWorld,,HelloWorld

MIDlet-3: HelloWorld2,,HelloWorld2

MIDlet-Version: 1.0.1

MicroEdition-Profile: MIDP-2.0

Page 12: 03 midp

Java Application Descriptor

(JAD)

Page 13: 03 midp

Why JAD ?

• Provide the application manager with

information about the contents of a JAR,

so that it can decide whether a MIDlet

suitable to run on the device or not.

• Provide a means for parameters to be

passed to a MIDlet without changing the

JAR file.

Page 14: 03 midp

Must-Exist Entry

• MIDlet-Name

• MIDlet-Version

• MIDlet-Vendor

• MIDlet-<n>

• MIDlet-Jar-URL

• MIDlet-Jar-Size

Page 15: 03 midp

JAD MIDlet Attributes

Page 16: 03 midp

Example

MIDlet-Jar-Size: 1783

MIDlet-1: HelloWorld,,HelloWorld

MIDlet-2: HelloWorld,,HelloWorld

MIDlet-3: HelloWorld2,,HelloWorld2

MIDlet-Jar-URL: Basic_Midlets.jar

MicroEdition-Configuration: CLDC-1.0

MIDlet-Version: 1.0.1

MIDlet-Name: Basic Midlets Midlet Suite

MIDlet-Vendor: Midlet Suite Vendor

MicroEdition-Profile: MIDP-2.0

Page 17: 03 midp

Reference

• Core J2ME Technology and MIDP. John

W. Muchow. Prentice Hall PTR, 2002.