| Author |
J2ME application sends SMS only to java supported mobile phones
|
Imdad Soomro
Greenhorn
Joined: Jul 15, 2009
Posts: 16
|
|
|
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
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14456
|
|
|
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.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Imdad Soomro
Greenhorn
Joined: Jul 15, 2009
Posts: 16
|
|
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){}
}
|
 |
 |
|
|
subject: J2ME application sends SMS only to java supported mobile phones
|
|
|