Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Guida alla Risoluzione dei Problemi Pagina 153

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 286
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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));
Vedere la pagina 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 285 286

Commenti su questo manuale

Nessun commento