EasyManua.ls Logo

Sun Microsystems J2ME User Manual

Sun Microsystems J2ME
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, California 95054
U.S.A.
1-800-555-9SUN or 1-650-960-1300
User’s Guide
J2ME Wireless Toolkit
2.2
October 2004

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Sun Microsystems J2ME and is the answer not in the manual?

Sun Microsystems J2ME Specifications

General IconGeneral
BrandSun Microsystems
ModelJ2ME
CategorySoftware
LanguageEnglish

Summary

Developing MIDlet Applications

Understanding MIDlet Projects

Explains how MIDlet suites are organized into projects and the components of a project.

Simple MIDlet Development Cycle

Describes the basic edit-source-code, build, and run cycle for developing MIDlet applications.

Editing MIDlet Source Code

Highlights that editing source code is done outside the toolkit and requires a text editor.

Building MIDlet Source Code

Explains the process of compiling source files using the toolkit's build function.

Running MIDlets in the Emulator

Details how to run compiled MIDlets in the emulator after a successful build.

Full MIDlet Development Lifecycle

Covers the extended cycle: edit, package, install, and run for more comprehensive testing.

Packaging MIDlet Suites

Describes packaging a MIDlet suite into JAR and descriptor files for distribution.

Installing MIDlet Suites

Explains how to install MIDlet suites into the emulator or a real device via OTA.

Running Installed MIDlets

Details running installed applications on real devices, noting device-specific variations.

Using Code Obfuscation

Introduces obfuscators like ProGuard for reducing MIDlet suite JAR size and improving efficiency.

Debugging MIDlet Applications

Explains how to use external debuggers like jdb to monitor and debug running MIDlet applications.

Deploying MIDlets via Web Server

Describes how to deploy MIDP applications remotely on a web server for Over-The-Air (OTA) provisioning.

Working with Projects and Configurations

Selecting Target APIs for Projects

Explains how to select specific J2ME APIs for a project to tailor build configurations to target devices.

Modifying MIDlet Suite Attributes

Details how to modify MIDlet suite attributes stored in the descriptor and manifest files.

Managing MIDlets within a Project

Covers adding, editing, and reordering MIDlets within a MIDlet suite project.

Integrating Third-Party Libraries

Explains how to incorporate external libraries into projects for added functionality.

Advanced KToolbar Configuration

Covers advanced configuration options for KToolbar by editing the ktools.properties file.

Using the Emulator for Development

Basic Emulator Operation

Provides an overview of the emulator's functionality and interaction, based on the DefaultColorPhone skin.

Configuring Emulator Preferences

Covers adjusting emulator settings to simulate device conditions or resource constraints.

Setting Up Network Proxies

Details configuring network proxy settings for the emulator to connect through firewalls.

Simulating Limited Heap Size

Explains how to set the maximum heap size to simulate limited memory conditions on real devices.

Adjusting Emulator Performance Settings

Explains how to simulate real device performance characteristics like speed and network latency.

Pausing and Resuming MIDlets

Details the emulator's mechanism for pausing and resuming MIDlet execution, useful for testing.

Monitoring and Debugging Applications

Using the Method Profiler

Introduces the profiler for tracking method usage frequency and execution time within applications.

Analyzing Method Call Graphs

Explains the call graph view for visualizing method call hierarchies and relationships.

Interpreting Profiler Execution Data

Details how to view method execution time, call counts, and percentages in the profiler.

Saving and Loading Profiler Sessions

Describes how to save and load profiler session data for later analysis.

Using the Memory Monitor

Explains the memory monitor for examining application memory usage and object allocation.

Using the Network Monitor

Introduces the network monitor for tracking transmitted and received network data for applications.

Filtering Network Messages

Details how to use filters to examine specific subsets of network traffic based on protocol.

MIDlet Security and Signing

Understanding MIDlet Permissions

Explains how MIDlets require specific permissions to perform sensitive operations, defined in the descriptor.

MIDlet Protection Domains

Details the four protection domains (minimum, untrusted, trusted, maximum) that govern MIDlet security.

Signing MIDlet Suites

Covers the process of cryptographically signing MIDlet suites for authentication and security.

Managing Cryptographic Keys

Explains how to manage cryptographic keys, including creation and import, for MIDlet signing.

Using the Wireless Messaging API (WMA)

Sending Messages via WMA Console

Introduces the WMA console utility for sending SMS, CBS, and MMS messages.

Appendix B: Command Line Reference

MIDP Development Cycle via Command Line

Explains accomplishing MIDP development cycle steps (build, package, run) via the command line.

Running Emulators and MIDlets from Command Line

Explains running the emulator and MIDlet suites from the command line with various options.