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

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

Running Projects Simultaneously on a Single Device

MSA-compliant devices are capable of running multiple virtual machines.You can test this behavior in the emulator. Be sure the output window is visible in the SDK (select Window > Output > Output). To test this feature, follow these steps:

  1. Open the sample projects Games and AudioDemo.

  2. In the device selector, choose an MSA-compliant device and run Games. When the emulator launches run AudioDemo on the same device.

    As each MIDlet loads, the AMS automatically launches it.

  3. In AudioDemo, launch the Audio Player, and play the JavaOne theme.

    Select AudioPlayer, then from the soft menu, select 1, Launch. Select JavaOne Theme and press the Play soft button.

  4. In the emulator, choose Application > AMS Home, or press F4.

    Select SunSamples - Games. From the soft menu, select 1, Open. The music continues to play while you are able to simultaneously launch and play games.

  5. Select Application > AMS Home, or press F4. Highlight AudioSamples, and from the soft menu, select 2, Bring to foreground. Press the Pause soft key. The music stops playing.

  6. Select Application > AMS Home, or press F4. Highlight AudioSamples and from the soft menu, select 1, Open. Select Bouncing Ball from the list and from the soft menu, select 1, Launch. Select MIDI background and press the Play soft button.

  7. Select Application > AMS Home, or press F4. Select Application > Switch Running MIDlet. Select Audio Player and select Switch to. You can press the Play soft button to resume the Audio Player.