Wireless Messaging API 1.1 in j2me

Chapter 11 - Wireless Messaging API 1.1

    Wireless Messaging API 1.1 in j2me

  •           The J2ME Wireless Toolkit supports the Wireless Messaging API (WMA) with a particular environment. WMA 1.1 (JSR 120) enables MIDlets to send and receive Short Message Service (SMS) or Cell Broadcast Service (CBS) messages.

              WMA 2.0 (JSR 205) includes support for MMS messages.The Mobile Media API (MMAPI) and the Wireless Messaging API (WMA) are developing wireless messaging applications or applications that make use of multimedia.

              Java Technology for the Wireless Industry used Connected Limited Device Configuration (CLDC) and Mobile Information Device Profile (MIDP) work together to form a complete Java Runtime Environment (JRE).

              The environment enables the deployment of end-to-end solutions on mobile phones and other mobile information devices.

              The specification requires certain technologies such as CLDC 1.0, MIDP 2.0 and Wireless Messaging API (WMA) 1.1 (JSR-120).

    Setting Emulator Phone Numbers

              The phone numbers used as addresses for WMA messages. By default, the first emulator instance has a phone number of +555000.

              Subsequent instances of the emulator will have unique numbers in ascending order: +5550001, +5550002, +5550003.

              To assigned phone numbers first choosing Edit > Preferences from the KToolbar menu and clicking on the WMA tab.


              The Phone Number of Next Emulator field is just sounds.Fill in a number for this field, the next emulator instance will have that number.

              If the Phone Number of Next Emulator is already in use, or if the field is blank, then the First Assigned Phone Number is used for the next emulator instance.next instances count up.

              For example:Fill in +6269333 for the Phone Number of Next Emulator and +5550000 for the First Assigned Phone Number.

              Then it launch four emulator instances, their numbers will be +6269333, +5550000, +5550001, and +5550002.

    Sending Messages With the WMA Console

              The WMA console is allows to send and receive messages. Example, use the WMA console to send SMS messages to a MIDlet running on the emulator.

              To launch the WMA console, choose File > Utilities from the KToolbar menu. Click on Open Console in the WMA box.

    WMA Console

    Sending a Text SMS Message

              To send a text SMS message, click on Send SMS the send window pops up.

    Sending message

              The window automatically lists the phone numbers of all running emulator instances. Select a destination - Control-click to select multiple destinations and enter a port number. Type your message and click Send.

    Sending Text or Binary CBS Messages

              Sending CBS messages is similar to sending SMS messages that need not to choose recipients. To send a text or binary CBS message, click on Send CBS in the WMA console.

    Sending MMS Messages

              MMS messages is consist one or more files, usually images or sounds. MMS message can be sent to multiple recipients. To send an MMS message from the WMA console, click on the Send MMS button.

              The window for composing MMS messages has two tabs, one for recipients and one for content. Begin by filling in a subject and recipient. If you wish to add more recipients, click on the Add button.


              To send a message to a running emulator whose number is +6670001


              To remove a recipient, first select its line, then click on Remove.

    Receiving Messages in the WMA Console

              The WMA console can also receive messages.In WMA console window, It has its own phone number in the title bar.send messages to the WMA console from applications running on the emulator.

    Using the Network Monitor with WMA

              Click on the SMS or CBS or MMS tabs to WMA messages. Information about the messages and their fragments is shown in the left pane of the network monitor.

              Click on a message or message fragment and chech the details in the right pane.

© 2015 by Learncertification All Rights Reserved. The certification names are the trademarks of their respective owners. Terms & Privacy Policy