java platform micro edition software development kit 3
TRANSCRIPT
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
1/18
Java Platform Micro Edition
Software Development Kit 3.0 forWindows
1
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
2/18
What is CLDC & MIDP?
2
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
3/18
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 asolid Java platform for developing applications to run on devices
with limited memory, processing power, and graphical capabilities.
3
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
4/18
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 andservice providers, wireless handset manufacturers, and vendors of
mobile software. CLDC has been designed with the following goals
in view:
Facilitate application portability by abstracting native system
operations into standardized APIs
Extend device functionality by allowing dynamic downloading of
applications into the device
4
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
5/18
TARGET DEVICE
CLDC is designed to bring the many advantages of the Java platformto network-connected devices that have limited processing power,memory, and graphical capability, such as cellular phones, pagers,low-end personal organizers, and machine-to-machine equipment.In addition, CLDC can also be deployed in home appliances, TV set-
top boxes, and point-of-sale terminals. Target devices typically havethe following capabilities:
A 16-bit or 32-bit processor with a clock speed of 16MHz or higher
At least 160 KB of non-volatile memory allocated for the CLDClibraries and virtual machine
At least 192 KB of total memory available for the Java platform Low power consumption, often operating on battery power
Connectivity to some kind of network, often with a wireless,intermittent connection and limited bandwidth
5
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
6/18
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
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
7/18
CLDC and MIDP provide the core application functionality requiredby mobile applications, in the form of a standardized Java runtimeenvironment and a rich set of Java APIs. Developers using MIDP canwrite applications once, then deploy them quickly to a wide varietyof mobile information devices. MIDP has been widely adopted asthe platform of choice for mobile applications. It is deployedglobally on millions of phones and PDAs, and is supported byleading integrated development environments (IDEs). Companiesaround 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
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
8/18
INSTALLATION
8
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
9/18
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
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
10/18
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
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
11/18
11
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
12/18
First MIDlet program
12
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
13/18
Click on file -> New Project(ctrl+alt+N)
13
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
14/18
Select Project Name & Location
14
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
15/18
Select Device & Device Configuration
15
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
16/18
HelloMIDlet.javapackage hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloMIDlet extends MIDlet implements CommandListener {
private Command exitCommand; // The exit command
private Display display; // The display for this MIDlet
public HelloMIDlet() {
display = Display.getDisplay(this);
exitCommand = new Command("Exit", Command.EXIT, 0);
}
public void startApp() {
TextBox t = new TextBox("Hello", "Hello, World!", 256, 0);
t.addCommand(exitCommand);
t.setCommandListener(this);
display.setCurrent(t);
}
16
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
17/18
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {}
public void commandAction(Command c, Displayable s) {
if (c == exitCommand) {
destroyApp(false);
notifyDestroyed();
}
}
}
Click on play button & program will run on emulator
17
-
8/9/2019 Java Platform Micro Edition Software Development Kit 3
18/18
18
OUTPUT: