| Reply | « Previous Thread | Next Thread » |
|
Hi
I have an appication for N3410 which uses the Nokia SMS Api to send SMS. I want to adapt this application for N3650 using the Wireless Messaging API in order to send an SMS. The APIs look similar for sending SMS so I replaced the Nokia SMS API with WMA -> Compiler is ok with that ->but it won't work . What are the differences Between those APis when sending an SMS ? What do I need to change ? |
|
Please
Have a look at the example MIDlet in www.forum.nokia.com/java and also example presented in WMA spec. Example of sending message: try { String addr = “sms://+358401234567”; MessageConnection conn = (MessageConnection) Connector.open(addr); TextMessage msg = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE); msg.setPayloadText(“Hello World!”); conn.send(msg); } catch (Exception e) { ... } Structure of libraries is changed, so when you import, make sure that it goes right. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|