Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send sms using j2me

 
prakash narkodu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me in the basic setup, which is needed for sending SMS from j2me applications to mobile phones.

Thanks in advance.
 
Lindikaya Ntshinga
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need the Wireless Toolkit Version 2.0 (it contains MIDP 2.0 with the WMA reference implementation). This is already setup to send SMSs from one emulator to another. Run the SMSDemo.
You need to open two instances of the emulator,
representing the sender and reciever. After you have seen these in action, you must code through the applications code to see how it is done.
Hope this helps
 
Neil Stamps
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you will need a phone/emulator with the optional Wireless Messaging API (JSR 120) implemented. I believe that currently the only nokia phone (in Europe) is the 3510i. Nokia supply emulators which implement this JSR, and also provide an example chat application using either their early Nokia SMS api, or the standard WM api.
Standard J2ME does not support SMS capability, as the only mandatory protocol is HTTP.
 
David Price
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Close, Neil, but wrong phone
The Nokia 3510i doesn't support either the standard Wireless Messaging API or Nokia's earlier proprietary "Nokia SMS API". A MIDlet running in a Nokia 3510i has no way to send or receive an SMS. What you need is a Nokia 3410 or a Nokia 3650. For more details, see my answer in the topic "AT Commands in MIDlets".
 
Neil Stamps
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I stand corrected, 3410 was the phone I had in mind.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic