Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Running a Project

Troubleshooting

Sample Project Overview

Configuring the Web Browser and Proxy Settings

Resolving Reference Problems

Running MIDP and CLDC Sample Projects

Running the Demos Sample Project

Colors

Properties

Http

FontTestlet

Stock

Add Stock Symbols to the Ticker

Change the Update Interval

Remove a Stock

Stock Tracker

What If?

Alerts

Tickets

ManyBalls

MiniColor

Chooser

HttpExample

HttpView

PushExample

Running FPDemo

Running Games

Running Network Demo

Socket Demo

Datagram Demo

Running PhotoAlbum

Running UIDemo

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference

Logs

JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support

Index

Sample Project Overview

The Java ME Platform SDK includes demonstration applications that highlight some of the technologies and APIs that are supported by the emulator.

Most demonstration applications are simple to run. Running a Project contains instructions for running most demonstrations. Sample projects usually have some additional operation instructions.

Table 1 lists all the MIDP/CLDC demonstration applications that are included in this release.

MIDP/CLDC Sample Projects
Sample
Optional Package
Description
Instructions
AudioDemo
MMAPI 1.1
Demonstrates audio capabilities, including mixing and playing audio with an animation.
BluetoothDemo
JSR 82
Demonstrates device discovery and data exchange using Bluetooth.
CHAPIDemo
JSR 211
A content viewer that also uses MediaHandler.
CityGuide
JSR 179
A city map that displays landmarks based on the current location.
Demo3D
JSR 184
Contains MIDlets that demonstrate how to use 3D graphics, both immediate mode and retained mode.
Demos
MIDP 2.0
Includes various examples: animation, color, networking, finance, and others.
FPDemo
CLDC 1.1
Simple floating point calculator.
Games
MIDP 2.0
Includes TilePuzzle, WormGame, and PushPuzzle.
I18nDemo
JSR 238
Includes string sorting, number formatting, and a phrase translator.
JBricks
JSR 229
A game that uses the Payment API for buying extra lives or levels.
JSR172Demo
JSR 172
Demonstrates how to use the JSR 172 API to connect to a web service from a MIDlet.
LWUITDemo
N/A
Demonstrates LWUIT features.
MMAPIDemos
MMAPI
Demonstrates MMAPI features, including tone sequences, MIDI playback, sampled audio playback, and video.
Multimedia
MMAPI
Demonstrates different video playback formats.
NetworkDemo
MIDP 2.0
Demonstrates how to use datagrams and serial connections.
PDAPDemo
JSR 75
Demonstrates how to manipulate contacts, calendar items, and to-do items. Demonstrates accessing local files.
PhotoAlbum
MIDP 2.0
Demonstrates a variety of image formats.
SATSADemos
JSR 177
Demonstrates communication with a smart card and other features of SATSA.
SATSAJCRMIDemo
JSR 177
Shows how to use the SATSA-Java Card Remote Invocation method.
Sensors
JSR 256
The SensorBrowser and Marbles game demonstrate sensor input.
SIPDemo
JSR 180
Simple message exchange using SIP.
SVGContactList
JSR 226
Uses SVG to create a contact list displayed with different skins.
SVGDemo
JSR 226
Uses different SVG rendering techniques.
UIDemo
MIDP 2.0
Showcases the breadth of MIDP 2.0’s user interface capabilities.
WMADemo
WMA 2.0
Shows how to send and receive SMS, CBS, and MMS messages.
XMLAPIDemo
JSR 280
Uses DOM and STAX APIs to create an XML sample and SAX, DOM and StAX APIs to parse the sample.
Follow the instructions the application provides.

Table 2 lists the CDC sample projects available in this release.

CDC Sample Projects
Sample
Optional Package
Description
Instructions
AGUIJava2DDemo
JSR 209
This stand-alone application is a Java SE application adapted for the CDC environment. It demonstrates the graphical and animation capabilities of the Java 2D™ API.
Click the blue arrows to page through the various images and animations. The applications focus on curves. Click the AA icon to see how antialiasing affects appearance.
AGUISwingSet2
JSR 209
Functional tools such as buttons, sliders, and menus implemented with Swing.
Click through the tabs to view the controls and animations.
BdjGunBunny
N/A
A shooting game.
Must be run on an external BD-J platform. See: Compiling, Deploying, and Running a Stubs for BD-J Platform Project.
ing HTML relocated from here.-->