You Are Here:

Community: Developer Discussion Boards

#1 Old not sending SMS to non-WMA phone - 2003-06-12, 12:10

Join Date: Mar 2003
Posts: 31
Location: London
boinged
Offline
Registered User
Hi, I can send and receive SMS (using the WMA) between 3650s no problem.

But when I send from a 3650 to a non WMA phone the text message goes to the inbox. I thought that specifying a port would prevent this but it doesn't. Is there any workaround? I.e. I want the SMS to be processed by WMA capable phones but not not viewable by non WMA phones.

cheers,
Steve
Reply With Quote

#2 Old 2003-06-13, 13:53

Join Date: Mar 2003
Posts: 31
Location: London
boinged
Offline
Registered User
Failing a solution to that, is it possible to construct a BinaryMessage that has some readable text at the beginning.

e.g. the BinaryMessage sent is:

"you need a 3650 running myApp".toCharArray()+myData

Which when received by a 'normal' phone displays:

you need a 3650 running myApp + weird characters


Or do I have to escape my data into characters supported by TextMessage and send that instead?

cheers,
Steve
Reply With Quote

#3 Old 2003-06-16, 08:26

Join Date: Mar 2003
Posts: 36
Send a message via Yahoo to arunjadhav_v
arunjadhav_v's Avatar
arunjadhav_v
Offline
Registered User
Hi steve..
I am desperately trying to write a code which could receive an sms. As per ur case using wma one can write a code for receving sms ..can u forward me that code.
My application requirement is that i just got to read the sms which i will be receiving on my mobile and take an appropriate action based on it.

My email id is arunjadhav_v@hotmail.com.

Regards,
Arun
Reply With Quote

#4 Old 2003-06-17, 11:37

Join Date: Mar 2003
Posts: 4
cgervaise
Offline
Registered User
Hi,

My problem is this one : I haven't yet managed to send an SMS.

Here is the code :

String addr = "sms://31000";

try{
MessageConnection conn = (MessageConnection)Connector.open(addr);
TextMessage msg = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
msg.setPayloadText(content);
conn.send(msg);
return true;
} catch(Exception e) {
return false;
}

Can someone help me ??
Reply With Quote

#5 Old 2003-06-17, 12:15

Join Date: Mar 2003
Posts: 31
Location: London
boinged
Offline
Registered User
2 problems spring to mind

1) missing colon:

String addr = "sms://:31000";


2) no address (phone number set)

msg.setAddress("07974123123:31000");


Also, you may want to do the sending in a new thread so the phone doesn't lock up.



Steve

@Arun - I can't email you my code but if you post yours here then I will do my best to look at it or you may get lucky and someone from Nokia will help you :)
Reply With Quote

#6 Old 2003-07-13, 09:13

Join Date: Jul 2003
Posts: 3
hiwinner
Offline
Registered User
Hi boinged. I am having trouble running my Midlet and the sample programs on the emulator that comes with the J2ME Wireless Tool Kit 2.0. Whenever I use the WMA tool to send a SMS to the Midlet, the green light on the emulator is on for a second but a NullPointerException is countered at the line Message msg = (Message) conn.receive(). I also downloaded the same program to my 3650. Whenever there is an incoming msg to my 3650, the midlet seemed to caught the msg since I could not find it in the OS inbox. However, my midlet did nothing after that. Which emulator are you using? I am really having a big problem here so any help is really appreciated.

My code simply does the following inside startApp():

String addr = "sms://:5432";
MessageConnection conn = (MessageConnection)Connector.open(addr);
Message msg = (Message) conn.receive(); //<=== fails here
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia