Sun Logo


Sun Java Studio Mobility 6 2004Q2 Tutorial

Sun Javatrademark Studio Mobility 6 2004Q3

817-2343-10



Contents

Preface

1. Getting Started

Obtaining and Installing the Required Software

Starting the IDE

2. Introduction to the Currency Converter

Description of the Currency Converter Application

Installing the Currency Converter Application

Compiling and Running the Application

Switching Emulators

Summary

3. Tutorial Concepts

MIDP Application Concepts

Java 2, Micro Edition (J2ME)

Connected, Limited Device Configuration (CLDC)

Mobile Information Device Profile (MIDP)

Structure of a MIDP Application

MIDlets

MIDlet Suites

Creating MIDlets in the Java Studio Mobility IDE

Mounting a Filesystem

Compilation and Preverification

Emulators

Networked Mobile Data Application

4. Creating a MIDlet and MIDlet Suite

Initial Setup

Creating the MIDlet Suite

Coding the MIDlet

Creating a MIDP Form

Creating a MIDP list

Packaging the Currency Converter Application

5. Debugging MIDlets and MIDlet Suites

MIDP Debugging in Java Studio Mobility

Setting a Breakpoint

Running a Debugging Session

6. The Currency Converter Networked Mobile Data Application

Description of the Currency Converter Application

Installing the Currency Converter Wireless Application

Compiling and Running the Application

Summary

7. Coding the Currency Converter Wireless Application

Initial Setup

Creating a Web Module

Extending Web Services to a MIDlet.

Executing the MIDlet

Summary

Index