You Are Here:

Community: Developer Discussion Boards

#1 Old Wireless Messaging API -NOkia SMS Api - 2003-05-14, 13:15

Join Date: May 2003
Posts: 9
erdnamit
Offline
Registered User
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 ?
Reply With Quote

#2 Old 2003-05-14, 14:55

Join Date: Mar 2003
Posts: 382
jalev's Avatar
jalev
Offline
Forum Nokia Expert
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 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