Manuals
/
Sun Microsystems
/
Power Tools
/
Tool Storage
Sun Microsystems
manual
28 J2ME Wireless Toolkit User’s Guide October
Models:
J2ME
1
40
134
134
Download
134 pages
62.02 Kb
37
38
39
40
41
42
43
44
Install
Bluetooth
Configuring KToolbar
Accessing Documentation Online
Command Line Reference 103
Adjusting Emulator Performance
Project settings window
Storage and Cleaning
Using Web Services
Toolkit Features
Page 40
Image 40
28
J2ME Wireless Toolkit User’s Guide • October 2004
Page 39
Page 41
Page 40
Image 40
Page 39
Page 41
Contents
User’s Guide
Please Recycle
Contents
Using the Emulator
Security and MIDlet Signing
Using the PIM and FileConnection APIs
Command Line Reference 103
Index
Who Should Use This Book
Preface
Related Documentation
How This Book Is Organized
Preface
Typographic Conventions
Accessing Documentation Online
We Welcome Your Comments
Introduction
Quick Start
Tools in the Toolkit
KToolbar window
Supported JCP APIs in the J2ME Wireless Toolkit
Toolkit Features
Supported Technology
Mmapi
Developing MIDlet Suites
About Projects
Creating a new project
Simple Development Cycle
Edit Source Code
Build
3 Run
Messages about building
List of project MIDlets
Full Development Cycle
Package
Install
Emulator AMS welcome screen
URL prompt
Application menu, again
Using an Obfuscator
Launching the installed application
Obfuscate.script.name scriptfile
Using a Debugger
Deploying Applications on a Web Server
From the command line, run
Working With Projects
Selecting APIs
Project settings window
Changing MIDlet Suite Attributes
Editing MIDlet suite attributes
Manipulating MIDlets
List of MIDlets in a project
Using the Push Registry
Project push registry settings
Project Directory Structure
Using Third-Party Libraries
Project directory structure
Third-Party Libraries for One Project
Configuring KToolbar
Third-Party Libraries for All Projects
Setting the javac Encoding Property
Setting the Application Directory
Working with Revision Control Systems
28 J2ME Wireless Toolkit User’s Guide October
Emulator Skins
Using the Emulator
Emulator skins
Using the Emulator
DefaultColorPhone emulator skin
Network Proxies
Setting Emulator Preferences
Keyboard shortcuts
Storage and Cleaning
Heap Size
Adjusting Emulator Performance
Choose Edit Preferences... and click on the Performance tab
Pausing and Resuming
Adjusting the emulator’s performance
Using Third Party Emulators
Running the Emulator Solo
Emulators
38 J2ME Wireless Toolkit User’s Guide October
Using the Profiler
Monitoring Applications
Turning on the profiler
Call Graph
Execution Time and Number of Calls
Using the Memory Monitor
Saving and Loading Profiler Information
You’ll see a table with the following columns
Using the Network Monitor
Saving and Loading Memory Monitor Information
Filtering Messages
Network monitor
Sorting Messages
Network monitor filter settings
Saving and Loading Network Monitor Information
Clearing the Message Tree
48 J2ME Wireless Toolkit User’s Guide October
Security and MIDlet Signing
Permissions
Protection Domains
MIDlet suite permissions
Signing a MIDlet Suite
Managing Keys
Creating a New Key Pair
Getting Real Keys
Creating a new key pair
Importing an Existing Key Pair
Managing Certificates
Removing a Key Pair
Importing Certificates
Certificate manager
Removing Certificates
Using the Wireless Messaging API
Setting Emulator Phone Numbers
Setting WMA preferences
Simulating an Unreliable Network
Sending Messages With the WMA Console
Sending a Text SMS Message
Sending a Binary SMS Message
Sending a text message
Sending Text or Binary CBS Messages
Sending a binary message
Sending MMS Messages
Sending CBS messages
Adding recipients for an MMS message
Using the Network Monitor with WMA
Receiving Messages in the WMA Console
Supported Formats and Protocols
Using the Mobile Media API
Supported Mmapi media formats
Media Capture
Using MediaControlSkin
Well-Behaved MIDlets
Working With Mobile 3D Graphics
Immediate Mode
JSR 184 Overview
Retained Mode
Trading Quality for Speed
Creating Mobile 3D Graphics Content
70 J2ME Wireless Toolkit User’s Guide October
Using the PIM and FileConnection APIs
FileConnection API
PIM API
Managing filesystem roots
Bluetooth Simulation Environment
Using the Bluetooth and Obex APIs
Obex Over Infrared
Setting Obex and Bluetooth Preferences
Obex Preferences
Bluetooth Discovery Timeout
Bluetooth System Properties
Bluetooth BCC Properties
BCC properties
76 J2ME Wireless Toolkit User’s Guide October
Using Web Services
Web services stub generator
78 J2ME Wireless Toolkit User’s Guide October
Application Demonstrations
Overview
\WTK22\apps\WMADemo\src\example\sms\SMSSend.java
Application demonstrations
General Instructions
KToolbar
BluetoothDemo
Opening a demonstration application project
Running the Bluetooth Demo server
Demo3D
Life3D
PogoRoo
Controls for Life3D
Retainedmode
Bouncing kangaroo
JSR172Demo
Mmademo
Simple Tones
Simple Player
Player commands
PausingAudioTest
Video
Attributes for mmademo
ObexDemo
Descriptions of MMAPI-specific MIDlet attributes
Waiting for an Obex connection
Prompting to accept a connection
PDAPDemo
Browsing Files
Contents of the root1 directory
PIM API
Choosing a list type
To actually save the list item, choose Commit from the menu
WMADemo
Saving an item
Sending a text message
Push registry springs to life
Addressing an MMS message
WMADemo receives the image
Prerequisites
Command Line Reference
Development Cycle
Preverify options files directories
Jar cfm MyApp.jar MANIFEST.MF -C classes . -C res
Run=storagename storagenumber
Debugging
Remove=storagename storagenumber all
Launching Toolkit GUI Components
Toolkit component commands
Emulator Preferences Properties List
Monitor Enable memory monitor
Using Security Features
Changing the Emulator’s Default Protection Domain
Signing MIDlet Suites
Managing Certificates
Options for the wscompile Command
Using the Stub Generator
Options
Command Supported Features -f for wscompile
Example
Locale Setting
Internationalization
Emulated Locale
Character Encodings
Font Support in the Default Emulator
Java Compiler Encoding Setting
118 J2ME Wireless Toolkit User’s Guide October
Index
Ktools.properties, 27 ktools.properties file
Index
122 J2ME Wireless Toolkit User’s Guide October
Top
Page
Image
Contents