Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Instrukcja Naprawy Strona 153

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 286
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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));
Przeglądanie stron 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 285 286

Komentarze do niniejszej Instrukcji

Brak uwag