Sun Microsystems J2ME manual Sending a text message

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 111
Image 111

To see the magic of the push registry, use the WMA console to send the emulator a message. Launch the console by choosing File > Utilities... from the KToolbar menu. Click on the Open Console button in the WMA box to launch the WMA console.

Click on the Send SMS... button in the WMA console window. Choose the number that corresponds to the emulator, probably +5550000. If you're not sure what number the emulator is using, look in its title bar. Choose the number in the SMS message window, then fill in a port number of 50000. Then type in your text message and click on Send.

FIGURE 57 Sending a text message

The emulator will spring to life. First it politely asks if it can launch the WMADemo application.

Appendix A Application Demonstrations 99

Page 111
Image 111
Sun Microsystems J2ME manual Sending a text message