This article applies to the following:
BlackBerry® Device Software 4.5 supports the display of richly rendered HTML email messages, when used with BlackBerry® Enterprise Server software version 4.1 Service Pack 6 (4.1.6) or BlackBerry® Internet Service 2.5. This means that the BlackBerry smartphone may receive an email message body that contains HTML, plain text, or both.
Third-party applications can access the body of the email message in both HTML and plain text format. The HTML body can be accessed using a
The hierarchy of an email message can vary based on the content within the email message. Factors include whether the email body is in HTML or plain text format (or both), whether the email message contains a type of attachment supported by the BlackBerry Attachment Service, or whether the email message contains a type of attachment that is not supported by the BlackBerry Attachment Service. A list of supported attachments can be found in this article.
Because the hierarchy of an email message can vary, it is recommended that an application be able to adapt to any hierarchy structure. The following class demonstrates such an implementation and shows how to extract the HTML and plain text content from an email message. A complete working sample that includes this class can be downloaded here.
public class MessageViewScreen extends MainScreen