Actually,
you should have some trouble if your MIDlet if it runs on a non-WMA device and your code references WMA classes (because the device does not have support for it).
I think class verification will fail on MIDlet startup if you do it.
You must patch the MIDlet build not to include WMA related code
when the target device does not support WMA.
Anyway a simple way to check if SMS is supported is trying to open a SMS connection with Connector.open(). If ConnectionNotFoundException is thrown you know SMS is not supported.
[ October 19, 2006: Message edited by: Eduardo Marques ]