permaculture playing cards*
The moose likes Java Micro Edition and the fly likes J2ME application sends SMS only to java supported mobile phones Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME application sends SMS only to java supported mobile phones" Watch "J2ME application sends SMS only to java supported mobile phones" New topic
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: 15657
    
  15

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){}


}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2ME application sends SMS only to java supported mobile phones
 
Similar Threads
J2ME Application - Bringing app in foreground after sending SMS
SMS Sending Issue
How to Send/Receive SMS using j2me program
Diff between ADSL and GSM Modem
SMS and MIDP(Urgent !!!)