Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0, Mac OS

Get PDF Book Print View

Document Information

Getting Started


Using Sample Projects

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

Network Monitoring

Lightweight UI Toolkit

Security and MIDlet Signing

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator (Windows Only)

On-device Debugging

Command Line Reference


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

JSR 180: SIP Communications

JSR 184: Mobile 3D Graphics

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

Using Content Handlers

Defining Content Handler Properties

Defining Content Handler Actions

Running the CHAPIDemo Content Browser

JSR 226: Scalable 2D Vector Graphics

JSR 229: Payment API Support

JSR 238: Mobile Internationalization API (MIA)

JSR 256: Mobile Sensor API Support


Running the CHAPIDemo Content Browser

This demo is a content browser that takes advantage of the content handler registry. it allows you to view different types of content from different sources.

  1. In the user interface, select File > Open Sample Project > CHAPIDemo.

    In the device selector, right‐click on a device, select Run Project OTA, and choose CHAPIDemo.

    • You are asked to enter the password for the keystore. Type: keystorepwd

    • You are asked to enter the password for the “dummyca“ key pair alias within the keystore. Type: keypwd

    • On the Favorite Links page, choose CHAPI Demo. Press the menu soft button and choose 1, Go.

    The Text Viewer displays a Media Player URL and links to various media files.

  2. Select Duke.png. Use the arrows to highlight the link, then select the file. Using CHAPI, the ImageViewer MIDlet runs and displays the Duke image. Select the Back soft key to return to the Text Viewer.
  3. Install the Media Player to view media.
    • Select the URL http:handlers/MediaHandler.jad.

      Select the Menu soft button and select item 1, Go.

    • The application asks, “Are you sure you want to install Media Handler?“ Select the Install soft key. For the rest of this demo, click Install if you are asked for confirmation.

      The installation finishes and you return to the Text Viewer.

  4. View different media files.

    Select a URL from the list, select the Menu soft button and select item 1, Go.