Java Reference
In-Depth Information
EMS-encoded objects or services. You can, however, use binary SMS via the BinaryMessage
class to send and receive other application data, such as for pushing compressed financial
(e.g., stock market updates), weather, or configuration data to your application.
Managing the Multiple Parts of a MultipartMessage
Working with MultipartMessage instances is a little different than working with other
Message subclasses, because the payload for an MMS message consists of one or more
parts . Each part is a single multimedia entity such as an image, a block of text, or a
sound, much like a conventional e-mail message. Figure 14-2 shows a schematic
representation of a message with multiple parts.
Figure 14-2. A schematic representation of a MultipartMessage instance
Instances of MultipartMessage have several fields:
A timestamp : Inherited from the Message class, a timestamp is available via the
getTimestamp method.
A starting content ID : The ID is a String that names the first part of the message
to be displayed to the user. It's available via the getStartContentId and
setStartContentId methods.
Search WWH ::




Custom Search