beautypg.com

Sun Microsystems J2ME User Manual

Page 111

background image

Appendix A

Application Demonstrations

99

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.