Motorola E680 Technical Manual - Page 55
JSR-120 API. Specifically, APIs defined in
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 55 highlights
14 JSR 120 - Wireless Messaging API Feature/Class Implementation JSR-120 API. Specifically, APIs defined in the Supported 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 Supported the javax.microedition.io package All methods for the BinaryMessage interface in the javax.wireless.messaging package Supported All methods for the Message interface in the javax.wireless.messaging Supported package All fields, methods, and inherited methods for the MessageConnection Supported interface in the javax.wireless.messaging package Number of MessageConnection instances in the 5 javax.wireless.messaging package All methods for the MessageListener interface in the javax.wireless.messaging package Supported All methods and inherited methods for the TextMessage interface in the javax.wireless.messaging package Supported Number of concatenated messages. 40 messages in inbox, each can be concatenated from 10 parts at max. No limitation on outbox (immediately transmitted) The following are code samples to show 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.BINAR Y_MESSAGE); /* Create BINARY of 'size' bytes for BinaryMsg */ 55