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
Purpose
Introduction
Audience
Disclaimer
Reference
References
Definitions, Abbreviations, Acronyms
Revision History
Date Name Reason November 09 S.A.R Initial Draft
Description
Document Overview
Background Applications this chapter describes
Java 2 Platform, Micro Edition J2ME
J2ME Introduction
Midp
Motorola J2ME Platform
Resources and API’s Available
Guide to Development in J2ME
Developing and Packaging J2ME Applications
Introduction to Development
Developing and Packaging J2ME Applications
Method of Downloading
Downloading Applications
Error Logs
Error Logs
OTA and Download
Contents
JAD file information
Application Management
MIDlet Upgrade
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
Manager Class
StopTimeControl
Audio Media
Description Mime Type
Tone Sequences
JSR 135 Mobile Media API
Wireless Messaging API WMA
JSR 120 Wireless Messaging
SMS Client Mode and Server Mode Connection
SMS Port Numbers
MessageConnectionConnector.opensms//6000
SMS Message Structure
SMS Message Types
SMS Notification
Messaging features/classes supported
Setting of address with port number
Setting of payload text for text message
Creation of server connection
Creation of client connection with port number
Sending of message
Setting of address without port number
Receiving of message
Getting of address
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
SendExtNo
StartCall
Throws
Sample DialerListener Implementation
Interface DialerListener
EndCall
Asynchronous callback for receive phone call event
Interface Hierarchy
Class Hierarchy
NotifyDialerEvent
Public void notifyDialerEventDialer dialer, byte event
Serial Port Access
Creating a Message
SMS Messaging as GSM Extension
Sending a Message
Deleting a Message
Viewing a Message
Canvas Functionality
User Display Interface
User Display Interface
End Key
Hardware Mapping
Send Key
Left, Right and Menu Soft Keys
Soft Key Position Priority
Global Command
Active Global Commands Back, Cancel, OK, Help & Stop
Power Key
Game Key Mapping
Volume Key
Application Keys
Application Resources
Application Icons
Softkey Labels
Effect of Master Clear or Master Reset
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
Overview
Shared JAD URLs
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 Attribute
Background Applications
Background Java Application Lifecycle
Background MIDlet
Flip Behaviors
Java service menu for a MIDlet with background attributes
MIDlet Manager Menu
Java System Menu
View MIDlet Suite Information
105
106
Introduction
Invisible Net for J2ME
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
Trusted MIDlet Suites
User Permission Interaction Mode
Permission Types concerning the Handset
Trusted 3rd Party Domain
Implementation based on Recommended Security Policy
Top Line of Prompt
Signing a MIDlet Suite
Trusted MIDlet Suites Using x.509 PKI
Dialog Prompts
MIDlet Attributes Used in Signing MIDlet Suites
Signer of MIDlet Suites
Creating the Signing Certificate
Inserting Certificates into JAD
Authenticating a MIDlet Suite
Creating the RSA SHA-1 signature of the JAR
Verifying the Signer Certificate
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