Contents
Motorola C381p Handset J2ME Developer Guide
Table of Contents
Network Apis
GET URL from Flex API
Java System Menu
Java Platform
Table of Figures
MIDlet Attributes, descriptions, and JAD and/or JAR
Index of Tables
Actions performed upon completion of signer certificate
Table of Code Samples
Disclaimer
Introduction
Purpose
Audience
Reference
References
Description
Revision History
Definitions, Abbreviations, Acronyms
Date Name Reason November 09 S.A.R Initial Draft
Document Overview
Background Applications this chapter describes
Java 2 Platform, Micro Edition J2ME
J2ME Introduction
Midp
Motorola J2ME Platform
Resources and API’s Available
Developing and Packaging J2ME Applications
Guide to Development in J2ME
Introduction to Development
Developing and Packaging J2ME Applications
Method of Downloading
Downloading Applications
Error Logs
Error Logs
OTA and Download
Contents
JAD file information
MIDlet Upgrade
Application Management
Downloading a JAR file without a JAD
System Menu
Installation and Deletion Status Reports
Action
JAD / Manifest Attribute Implementations
JAD Attributes
JAD
Java.lang support
Java.lang Implementation
Network Connections
Network APIs
Socket Connection
Https Connection
User Permission
Network APIs
Code Sample 3 Https Connection
JSR 135 Mobile Media API
JSR 135 Mobile Media API
ToneControl
GUIControl
VolumeControl
Description Mime Type
StopTimeControl
Manager Class
Audio Media
Tone Sequences
JSR 135 Mobile Media API
JSR 120 Wireless Messaging
Wireless Messaging API WMA
SMS Client Mode and Server Mode Connection
SMS Port Numbers
MessageConnectionConnector.opensms//6000
SMS Message Types
SMS Message Structure
SMS Notification
Messaging features/classes supported
Creation of client connection with port number
Setting of payload text for text message
Setting of address with port number
Creation of server connection
Getting of address
Setting of address without port number
Sending of message
Receiving of message
JSR 120 Wireless Messaging API
Code Sample 5 JSR 120 Wireless Messaging API
Phonebook Access API Permissions
Phonebook Access API
Sample of code for calling of ‘addint sortOrder’ method
Int num = PhoneBookRecord.getNumberRecordsByNamename
Sample of code for calling of ‘getMaxEmailLength ’ method
Code Sample 6 Phonebook API
Class DialerEvent
Dialer Class
Detail Definition
Summary
Method Summary
Class Dialer
Parameters
SetDialerListener
StartCall
SendExtNo
Throws
Interface DialerListener
Sample DialerListener Implementation
EndCall
Asynchronous callback for receive phone call event
Public void notifyDialerEventDialer dialer, byte event
Class Hierarchy
Interface Hierarchy
NotifyDialerEvent
Serial Port Access
SMS Messaging as GSM Extension
Creating a Message
Sending a Message
Deleting a Message
Viewing a Message
Canvas Functionality
User Display Interface
User Display Interface
Left, Right and Menu Soft Keys
Hardware Mapping
End Key
Send Key
Soft Key Position Priority
Global Command
Active Global Commands Back, Cancel, OK, Help & Stop
Power Key
Game Key Mapping
Volume Key
Application Resources
Application Keys
Application Icons
Effect of Master Clear or Master Reset
Softkey Labels
Deleting the MIDlet/Application
Download MIDlet Through Browser
Find a location with J2ME Application
Star Active Browser Session from Main Menu
Downloading MIDlets
Downloading and Installing J2ME Application MIDlets
Download MIDlet Through Browser
Memory Full
Different Error Checks
Download MIDlet Through Browser
Memory full error
Memory Full during installation process
Application version already exists
Memory Full help message during installation process
Same Version of Application already exists on the handset
Newer Application Version Exists
Latest Newer Version of Application exists
Lightweight Windowing Toolkit
UDP Support
Shared JAD URLs
Overview
Tell-A-Friend Option
Accessing Tell-A-Friend from SMM
Downloading from PC Via serial/USB
Downloading through Browser
Downloading through MMS
Flexible URL for downloading functionality
Get URL from Flex API
Security Policy
Implementation
Multiple Key Press
Key
Intelligent Keypad Text Entry API
ITAP
Lcdui
Refer to for Lcdui feature/class support for Midp
Supported Text in forms is wrapped and scrolled
Lcdui
Lcdui feature/class
Scenarios involved in launching midlet
Auto Launch of Midlets
Background MIDlet
Background Applications
Background Attribute
Background Java Application Lifecycle
Flip Behaviors
Java service menu for a MIDlet with background attributes
MIDlet Manager Menu
Java System Menu
View MIDlet Suite Information
105
106
Invisible Net for J2ME
Introduction
J2ME Invisible NET Options
108
J2ME Context-Sensitive Menu Options
Backward Compatibility/Flexing
Establishing Connection
Download Midlet through PC
Operator Apps Provisioning
Midp 2.0 Security Model
Untrusted Domain
Untrusted MIDlet Suites
User Permission Interaction Mode
Trusted MIDlet Suites
Permission Types concerning the Handset
Implementation based on Recommended Security Policy
Trusted 3rd Party Domain
Top Line of Prompt
Trusted MIDlet Suites Using x.509 PKI
Signing a MIDlet Suite
Dialog Prompts
Signer of MIDlet Suites
MIDlet Attributes Used in Signing MIDlet Suites
Creating the Signing Certificate
Verifying the Signer Certificate
Authenticating a MIDlet Suite
Inserting Certificates into JAD
Creating the RSA SHA-1 signature of the JAR
Verifying the MIDlet Suite JAR
Initial State Verification Result
Appendix a Audio Mix Table
Key Mapping for the C381p
Appendix B Key Mapping
124
Available Memory
Appendix C Memory Management Calculation
Appendix D
Online FAQ
Graphic Description
Appendix E Http Range
C381p Spec Sheet
Appendix F Spec Sheet
Motorola C381p
130