| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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 |
|
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 |
| arunjadhav_v |
| View Public Profile |
| Find all posts by arunjadhav_v |
|
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 ?? |
|
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 :) |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|