Forums Register Login

J2ME application sends SMS only to java supported mobile phones

+Pie Number of slices to send: Send
I have made a J2ME application which sends SMS only to java supported mobile phones. Can anyone tell me what could be the problem? Thanks
+Pie Number of slices to send: Send
I have no idea. If you're truly sending an SMS, it should be receivable by any SMS-capable phone. Certainly my old Windows Mobile phone had no problems.
+Pie Number of slices to send: Send
I really don't know. SMS gets received on some mobiles successfully. On some mobiles, it is received but doesn't get displayed and says "Message can not be displayed". On some mobiles it is not received at all.
Following is the code i am using to send the message.

public void send(String no, String mess){
try{

String num=no;
String msg=mess;
String address = "sms://"+num+":50000";
MessageConnection smsconn = null;
smsconn = (MessageConnection) Connector.open(address);
TextMessage txtmessage = (TextMessage) smsconn.newMessage(MessageConnection.TEXT_MESSAGE);
txtmessage.setAddress(address);
txtmessage.setPayloadText(msg);
smsconn.send(txtmessage);

smsconn.close();



}catch(Exception ex){}


}
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1392 times.
Similar Threads
SMS Sending Issue
Diff between ADSL and GSM Modem
SMS and MIDP(Urgent !!!)
J2ME Application - Bringing app in foreground after sending SMS
How to Send/Receive SMS using j2me program
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:58:09.