Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Guia de Resolução de Problemas Página 153

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 286
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 152
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));
Vista de página 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 285 286

Comentários a estes Manuais

Sem comentários