|
|
| sms application |
Expert:isha
how to send sms from our website to mobile device |
| Answers |
Hi friend,
Code to help solve the problem :
void send(byte data[]) {
try { String dest= "sms://456475565:5001"; MessageConnection Conn = (MessageConnection)Connector.open(dest); BinaryMessage bmsg = (BinaryMessage)Conn.newMessage( MessageConnection.BINARY_MESSAGE); bmsg.setAddress(dest); bmsg.setPayloadData(data); Conn.send(bmsg); Conn.close(); } catch(Exception e) { System.out.println("e="+e); fm.append("e="+e); } }
For more information,Tutorials and Examples on J2ME visit to :
http://www.roseindia.net/j2me/
Thanks
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|