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

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Understanding the Emulator

Viewing Device Properties

Platform Properties

Device Information

Device Properties

Setting Device Properties

Running a Project from the Device Selector

Running Projects Simultaneously on a Single Device

Emulator Options

Adding a Device Instance

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


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


Adding a Device Instance

As described in Viewing Device Properties, a particular device emulator can have more than one instance, and each instance is differentiated by a number appended to the emulator name, as seen in Table 1. Each device instance is stored in a numbered directory in /javame-sdk/3.0/work.

To create your own instance, follow these steps:

  1. Close the Java ME Platform SDK.

  2. In /javame-sdk/3.0/work, copy a numbered directory and rename it with the next number in the sequence.

  3. In the new directory, open the properties.xml file and change the name property string to a unique name.

    You can also change the values in device.properties.

  4. In the system tray, right-click on the Device Manager icon and select Exit from the context menu.

  5. Start the Java ME Platform SDK.

In the Device Selector you see a new node named Other. All your custom devices are listed here. To assign this device to a project, right-click the project, select Properties, and choose Platform. Your instance appears in the Device drop list.

You can also edit the device adaptor to create a new instance. For example, to create a second instance of the ClamshellCldcPhone, follow these steps:

  1. Go to installdir\toolkit-lib\process\device-manager\device-adapter\ClamshellCldcPhone.

  2. Make a copy of 1.bean, and name it 2.bean.

  3. Edit 2.bean to change the device number to 2. For example, ClamshellCldcPhone2.

  4. Exit the SDK and exit the Device Manager.

  5. Start the SDK. ClamshellCldcPhone2 is listed in the Other category.