10-11-2007, 10:24 AM
Join Date: Oct 2007
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Problem sending sms
Please Login to Remove!
Hi everybody !
I'm trying to simply send a sms to a recipient via J2ME. Is there any way to send a sms without signing the application ?
Here's the code i tested so far:
MessageConnection connection = (MessageConnection) Connector.open("sms://");
TextMessage message = (TextMessage)
message.setAddress("sms://" + receiveNumber);
This code blocks in the send() method and doesn't return.
I also tried to set the recipient number in Connector.open() like this:
and it resulted in a IllegalArgumentException
Any hints or ideas ?
Thanks in advance,