Troubleshooting guide
10
Using the messages application
Create new messages
Create new messages
Work with a message
Work with folders
Working with attachments
Task Steps
Create a new blank text message. >Invoke invokeApplication() using the APP_TYPE_MESSAGES constant parameter and a
new
MessageArguments object that uses the ARG_NEW_SMS parameter.
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new
MessageArguments( MessageArguments.ARG_NEW_SMS));
Create a new populated text message. 1. Create and populate a new TextMessage object.
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" );
2. Invoke invokeApplication() using the APP_TYPE_MESSAGES constant parameter and a
new
MessageArguments object that uses the new TextMessage object.
Invoke.invokeApplication( Invoke.APP_TYPE_MESSAGES, new
MessageArguments( m ) );
Create a new text message with
multimedia.
>Invoke invokeApplication() using the APP_TYPE_MESSAGES constant parameter and a
new
MessageArguments object that uses the ARG_NEW_MMS parameter.
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new
MessageArguments( MessageArguments.ARG_NEW_MMS));
Create a new blank email message. >Invoke invokeApplication() using the APP_TYPE_MESSAGES constant parameter and a
new
MessageArguments object that uses the ARG_NEW parameter.
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new
MessageArguments( MessageArguments.ARG_NEW));