Using The Message List; Create New Messages - Blackberry JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE Integration Manual

Blackberry device applications integration guide
Table of Contents

Advertisement

Using the message list

Create new messages

Work with a message
Work with folders
Working with attachments
Create new messages
Task
Create a new blank SMS text message. >
Create a new populated text message.
Create a new SMS text message with
multimedia.
Create a new blank email message.
Steps
invokeApplication()
Invoke
MessageArguments
new
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(
MessageArguments.ARG_NEW_SMS));
javax.wireless.messaging
Use the API items in the
1. Create and populate a new
MessageConnection mc = (MessageConnection)Connector.open( "sms://" );
TextMessage m = (TextMessage)mc.newMessage(
MessageConnection.TEXT_MESSAGE );
m.setAddress( "sms://5558888" );
m.setPayloadText( "An SMS Message for you" );
nvokeApplication()
2. Invoke i
• APP_TYPE_MESSAGES: a constant parameter
MessageArguments:
TextMessage
object.
Invoke.invokeApplication( Invoke.APP_TYPE_MESSAGES, new
MessageArguments( m ) );
nvokeApplication()
>
Invoke i
MessageArguments
new
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(
MessageArguments.ARG_NEW_MMS));
invokeApplication()
>
Invoke
MessageArguments
new
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(
MessageArguments.ARG_NEW));
using the APP_TYPE_MESSAGES constant parameter and a
object that uses the ARG_NEW_SMS parameter.
package (JSR 120).
TextMessage
object.
with the following parameters:
MessageArguments
a new
using the APP_TYPE_MESSAGES constant parameter and a
object that uses the ARG_NEW_MMS parameter.
using the APP_TYPE_MESSAGES constant parameter and a
object that uses the ARG_NEW parameter.
object that uses the new
3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment 4.6.0

Table of Contents