aspose file tools
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
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply 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: 14456
    
    7

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: J2ME application sends SMS only to java supported mobile phones
 
Similar Threads
SMS and MIDP(Urgent !!!)
Diff between ADSL and GSM Modem
J2ME Application - Bringing app in foreground after sending SMS
SMS Sending Issue
How to Send/Receive SMS using j2me program