View Single Post
Old 03-18-2009, 01:58 AM   #3 (permalink)
baskaraninfo
Knows Where the Search Button Is
 
baskaraninfo's Avatar
 
Join Date: Feb 2009
Location: Bangalore
Model: 9350
PIN: N/A
Carrier: Telstra
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Code to send sms

I have used the following code to send the sms:

MessageConnection _dc = (MessageConnection)Connector.open("sms://"+number);
Message sms = _dc.newMessage(MessageConnection.TEXT_MESSAGE);
TextMessage sms2 = (TextMessage)sms;
sms2.setPayloadText(msg);
_dc.send(sms2);
Offline   Reply With Quote