Sun Logo


Suntrademark ONE Studio 4, Mobile Edition Tutorial

816-7873-10



Contents

Before You Begin

1. Creating a MIDlet and MIDlet Suite

Setup Tasks

Mounting a Filesystem

Setting the Default Emulator

Setting an Emulator's Default Skin

Setting the Code Completion Feature

Using the Code Completion Feature to Complete Code

Compiling and Testing a MIDlet

Creating a Package for the MIDlet

Creating the ConverterMIDlet MIDlet

Coding a MIDlet

Compiling a MIDlet

Testing a MIDlet

Using MIDlet Suites to Package MIDlets

Creating a MIDlet Suite

Packaging a MIDlet Suite

Testing a MIDlet Within a MIDlet Suite

Changing the Target Emulator for a MIDlet Suite

Executing a MIDlet on Other Device Emulators

2. Debugging MIDlets and MIDlet Suites

Debugger Basics

Debugging a Program

Setting a Breakpoint

Running a Program in Debug Mode

3. Advanced Issues

Working With Projects

Creating a New Project

Setting Emulators

Supporting Over-the-Air (OTA) Application Downloading

Deploying a MIDlet Suite

A. Sample Application Source Code

ConverterMIDlet Source Code

Converter Source Code

Currencies Source Code

Settings Source Code