Table 10 Messaging Features/Classes Supported - Motorola C381P J2ME Technical Manual

J2me developer guide
Table of Contents

Advertisement

10
JSR 120 – Wireless Messaging API
Feature/Class
JSR-120 API. Specifically, APIs defined in the
javax.wireless.messaging package will be implemented with regards to
the GSM SMS Adaptor
All fields, methods, and inherited methods for the Connector Class in
the javax.microedition.io package
All methods for the BinaryMessage interface in the
javax.wireless.messaging package
All methods for the Message interface in the javax.wireless.messaging
package
All fields, methods, and inherited methods for the MessageConnection
interface in the javax.wireless.messaging package
Number of MessageConnection instances in the
javax.wireless.messaging package
All methods for the MessageListener interface in the
javax.wireless.messaging package
All methods and inherited methods for the TextMessage interface in
the javax.wireless.messaging package
Number of concatenated messages.
The Code Sample 5 shows the implementation of the JSR 120 Wireless Messaging API:
Creation of client connection and for calling of method 'numberOfSegments' for
Binary message:
BinaryMessage binMsg;
MessageConnection connClient;
int MsgLength = 140;
/* Create connection for client mode */
connClient = (MessageConnection) Connector.open("sms://" +
outAddr);
/* Create BinaryMessage for client mode */
binMsg =
(BinaryMessage)connClient.newMessage(MessageConnection.BINARY
_MESSAGE);
/* Create BINARY of 'size' bytes for BinaryMsg */
public byte[] createBinary(int size) {

Table 10 Messaging features/classes supported

int nextByte = 0;
Implementation
Supported
Supported
Supported
Supported
Supported
5
Supported
Supported
40 messages in inbox, each can
be concatenated from 10 parts at
max.
No limitation on outbox
(immediately transmitted)
44

Advertisement

Table of Contents
loading

Table of Contents