jimmack are u there?...
i reposted... please aid
thanks a lot
Main Topics
Browse All Topicshi all,
I'm developing for user to send and receive as well. however, nw stuck with an error
javax.microedition.io.Conn
Could anyone please advice?
i'm using wtk2.0, jdk 1.4.2, wma1.1, midp2.0
Target device: nokia 7210
protocol: +65981234567:5000
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi jimmack, thanks 4 replying... really needed help as boss rushin.. ;+)
i cnt send in wtk2.0 using nokia7210 device, error says protocol does not exist.
i tried loading it to a real nokia7210 device, & it says application not supported. not even opening the application.
Note: serverPort = getAppProperty ("serverPort");
-------------------------C
if (command == send1Command) {
try {
String addr = "sms://+" + dest.getString();
MessageConnection conn = (MessageConnection) Connector.open(addr);
TextMessage msg =
(TextMessage) conn.newMessage(MessageCon
msg.setPayloadText( textMesg.getString() );
conn.send(msg);
conn.close();
displayBlankForm ();
}
catch (Exception e)
{
System.out.println("Error in sending
command 1");
e.printStackTrace ();
}
}
The answer is now easy, but unfortunately not the one you want to hear :-(
The Nokia 7210 is not MIDP-2.0 compliant, it is only MIDP-1.0 compliant. This means that the SMS protocol is not supported by the device (in fact, the only protocol that is supported is HTTP).
There are a few MIDP-2.0 devices around at the moment, but only the latest handsets.
There is no way to implement SMS in a 7210 using MIDP-1.0. The only way you could do something *like* that would be to have the handset send a message to a server and get the server to send an SMS. I don't really think that this is what you're really wanting to do.
In order to allow SMSs to be sent from a J2ME MIDlet in a handset, the handset must be MIDP-2.0 compliant. As far as I know, the Wireless Message API (WMA) should be available in all phones that are MIDP-2.0 compliant.
MIDP-1.0 was the first release of Java into mobile phones. It is very restricted in it's capabilites, but has enough features that it has become extremely popular. From the presentations that I have seen, Nokia and Motorola intend to include J2ME on all their phones in the future.
The difficulty is finding phones that are MIDP-2.0 compliant ;-) Here are some that I know of:
Motorola - V500 and V600
Nokia - I'm not certain about model numbers, but it seems that "series 60" are MIDP-2.0 compliant (eg. 6600)
I'm not sure about other manufacturers.
Izit becoz of the server port???
My server port value is defined as below
serverPort = getAppProperty("serverPort
--------------------------
I system printed my statement b4 attempting to send... ... Below is the printed statements
Server Port: null
sms://+6598211090
--------------------------
Hi Chistina Jolie,
Hope I can help you.
- If you want to send SMS on Nokia, you can use Nokia SMS API. Go to www.forum.nokia.com, it is compatible with MIDP 1.0. You can find useful documents there.
- You can test SMS Sending and Receiving on J2ME Wirless Toolkit. This document can help you: http://java.sun.com/j2me/d
Regards,
Sorry for my hurrying.
- SMS Demo is only for MIDP 2.0
- The Nokia SMS API is available in the Nokia 3410 device. In future MIDP Java phones, when a wireless messaging API is included WMA will be supported instead of the Nokia SMS API. You should use WMA in your MIDlets in devices where it is available.
I think MIDP 2.0 will be supported in all phones soon. We hope that :-)
PS: I've just changed my account name from step2java to step2ME ;-)
Hi,
I have written a similar app for sending SMS in J2ME but the SMS is never received on the device. I had loaded the app on another device and ran the app from there, but didn't receive the SMS.
Code -
messageConnection = (MessageConnection) Connector.open("sms://1858
TextMessage textMessage = (TextMessage) messageConnection.newMessa
textMessage.setAddress("sm
textMessage.setPayloadText
messageConnection.send(tex
Can somebody tell me what could be the problem here? I don't think I am getting any exceptions here coz I ran the app on the emulator and it did not generate any exceptions.
I also have the MIDlet permissions set in the jad file for SMS and SMS.send.
Thanks in advance.
- Sadaf
Sadaf,
I have exactly the same problem . used the example from the sun toolkit 2.5.1 WMA Demo- compiled and packaged the jar and jad and copied it on my Sony erricson k750i and installed it. when i run it - it gives no error .. but the sms does not go to the destination mobile ....
i can share points with you in case someone provides us the answer...
Business Accounts
Answer for Membership
by: Christina_JoliePosted on 2004-01-28 at 22:43:43ID: 10225223
Please aid ... ...