• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[newbies ] : sending sms with WMA API

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i'm trying to develop a midlet application that should be able to send sms to a server. ( i know it would be better to use http protocol, but the request was to build application that send data via sms -__- to a special 4-digit phone number e.g. 8888 or 7799 ).
I've read the java.sun and the nokia forum, but i had one thing that confused me.
Do you really need to connect to an SMSC in order to send that kind of sms?
or is it enough just to write this piece of code( taken from "Extend J2ME to Wireless Messaging", IBM Forum):
clientConn = (MessageConnection)Connector.open("sms://+8888");
TextMessage tmsg =
(TextMessage)clientConn.newMessage (MessageConnection.TEXT_MESSAGE);
tmsg.setAddress("sms://8888");
tmsg.setPayloadText(msgToSend);
clientConn.send(tmsg);
if you do need to contact an smsc, then how do you set/retrieve the smsc number?
fyi, this application should run on Nokia series 60 phone ( if i'm not mistaken, they have supported WMA API).
thanks beforehand ^__^ , and i hope you forgive my lousy english.
 
Create symphonies in seed and soil. For this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic