Java Platform Micro Edition Software Development Kit 3
Java Platform Micro Edition Software Development Kit 3
1
What is CLDC & MIDP?
2
CLDC
The Connected Limited Device Configuration (CLDC) defines the base
set of application programming interfaces and a virtual machine for
resource-constrained devices like mobile phones, pagers, and
mainstream personal digital assistants. When coupled with a profile
such as the Mobile Information Device Profile (MIDP), it provides a
solid Java platform for developing applications to run on devices
with limited memory, processing power, and graphical capabilities.
3
CLDC objectives
The goal of the CLDC specification is to standardize a highly
portable, minimum-footprint Java application development
platform for resource-constrained, network-connected devices. It is
developed through the Java Community Process (JCP), which
comprises more than 500 members, including mobile operators and
service providers, wireless handset manufacturers, and vendors of
mobile software. CLDC has been designed with the following goals
in view:
5
MIDP
The Mobile Information Device Profile (MIDP) is a key element of
the Java 2 Platform, Mobile Edition (J2ME). When combined with
the Connected Limited Device Configuration (CLDC), MIDP provides
a standard Java runtime environment for today's most popular
mobile information devices, such as cell phones and mainstream
personal digital assistants (PDAs). The MIDP specification was
defined through the Java Community Process (JCP) by an expert
group of more than 50 companies, including leading device
manufacturers, wireless carriers, and vendors of mobile software. It
defines a platform for dynamically and securely deploying
optimized, graphical, networked applications.
6
CLDC and MIDP provide the core application functionality required by
mobile applications, in the form of a standardized Java runtime
environment and a rich set of Java APIs. Developers using MIDP can write
applications once, then deploy them quickly to a wide variety of mobile
information devices. MIDP has been widely adopted as the platform of
choice for mobile applications. It is deployed globally on millions of
phones and PDAs, and is supported by leading integrated development
environments (IDEs). Companies around the world have already taken
advantage of MIDP to write a broad range of consumer and enterprise
mobile applications.
BENEFITS
• Rich User Interface Capabilities
• Extensive Connectivity
• Multimedia and Game Functionality
• Over-the-Air-Provisioning
• End-to-End Security:
7
INSTALLATION
8
System requirement
Minimum Hardware
• 300-350 MB hard disk space
• 1 GB system RAM
• 1 GHz Pentium CPU
Required Software
• Microsoft Windows XP or Vista 32-bit with recent service packs
• Java SE Development Kit - JDK 1.6 or higher
• Apple QuickTime player (required to play AMR media on Windows)
9
How to Install
• Verify that your system meets the preceding minimum hardware
and software requirements.
• Download Java ME Platform SDK 3.0.
• Double-click the executable file to start the installation, and follow
the prompts.
• As the installation concludes, the Device Manager appears in the
Windows system tray.
10
11
First MIDlet program
12
Click on file -> New Project(ctrl+alt+N)
13
Select Project Name & Location
14
Select Device & Device Configuration
15
HelloMIDlet.java
package hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public HelloMIDlet() {
display = Display.getDisplay(this);
exitCommand = new Command("Exit", Command.EXIT, 0);
}
t.addCommand(exitCommand);
t.setCommandListener(this);
display.setCurrent(t);
}
•
16
public void pauseApp() {
}
17
OUTPUT:
18