Blackberry JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE Integration Manual page 14

Blackberry device applications integration guide
Table of Contents

Advertisement

BlackBerry Device Applications Integration Guide
Task
Create a new populated email message. 1. Create and populate a new email
Create a new blank PIN message.
Create a new populated PIN message.
14
Steps
net.rim.blackberry.api.mail.Message m = new
net.rim.blackberry.api.mail.Message();
Address a = new Address("mLi@rim.com", "Ming Li");
Address[] addresses = {a};
m.addRecipients(net.rim.blackberry.api.mail.Message.RecipientType.TO
, addresses);
m.setContent("A message for you...");
m.setSubject("Email for you");
nvokeApplication()
2. Invoke i
• APP_TYPE_MESSAGES: a constant parameter
MessageArguments
Message
object.
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new
MessageArguments(m));
invokeApplication()
>
Invoke
MessageArguments
new
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(
MessageArguments.ARG_NEW_PIN));
1. Create and populate a new PIN message.
net.rim.blackberry.api.mail.Message m = new
net.rim.blackberry.api.mail.Message();
PINAddress pa = new PINAddress("ABCDEF99", "Mark Chapters");
Address[] addresses = {pa};
m.addRecipients(
net.rim.blackberry.api.mail.Message.RecipientType.TO, addresses );
m.setContent("A message for you...");
m.setSubject("PIN message for you");
invokeApplication()
2. Invoke
• APP_TYPE_MESSAGES: a constant parameter
MessageArguments:
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new
MessageArguments(m));
message
object.
with the following parameters:
MessageArguments
: a new
using the APP_TYPE_MESSAGES constant parameter and a
object that uses the ARG_NEW_PIN parameter.
with the following parameters:
MessageArguments
a new
object that uses the new email
PIN
object that uses the new
message.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment 4.6.0

Table of Contents