The support is rudimentary at the moment, but it is enough my own needs. As of such I have only really tested the receiving of "SMS" messages and have not really tested sending messages properly.
Properly implemented "server" connections. i.e. of the form
Coupled with an additional property for setting the local number (SMSNumber) things should now
Created WMAConsole app for sending emulated SMSs. This uncovered a few bugs in the implementation, mainly to do with sending (rather than receiving SMSs).
The extra code added includes the five interfaces as defined in the WMA (JSR 120) in the package "
In addition there are three implementation class in the package "
Due to the way that the connection classes are loaded by mpowerplayer there was no need to alter any existing code.
SMS messages are sent to the emulator via DatagramPackets. The format of these packets mimics that used by Sun's Wireless Toolkit (WTK). A description of the format of these packets can be seen via this entry on my blog. Otherwise it should be possible to use the WMA console from the WTK to send packets to the emulators.
There are three values that are currently configurable via properties:
It should be possible to set these when running the emulator using the
To aid in testing MIDlets that use the WMA I have also created a small GUI program that allows the sending
of emulated SMSs as UDP packets. WMAConsole allows you to send packets to the
emulator in either text or binary format. To use it compile the source file, place the class file in
the same place as the cldc.jar file, then run it using:
java -classpath cldc.jar:. WMAConsole