This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Can a J2ME app send an SMS from a java-enabled phone? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Can a J2ME app send an SMS from a java-enabled phone?" Watch "Can a J2ME app send an SMS from a java-enabled phone?" New topic
Author

Can a J2ME app send an SMS from a java-enabled phone?

Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
Hi,
I was wondering if was possible to send (and recieve) SMS messages from a J2ME Midlet for a game. The idea is to play a peer-2-peer game where the program uses SMS messages to communicate.
Thanks,


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Yes, use the J2ME Wireless Messaging API (WMA). You will soon be able to send/receive MMS messages with the WMA v2.0.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
At first, we cannot use J2ME API to deal with SMS... But as Mr.Yuan said, we can later do things on SMS using WMA v2.0... We need to use proprietry APIs from different vendors to do things with SMS on their specific cellphones like Nokia, Siemens and so on...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
WMA v1.0 (SMS) is supported on many phones including most Nokia models in the last year.
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
Thanks to both of you.
I'll get investigating right away.
Anushe Khan
Ranch Hand

Joined: Dec 13, 2003
Posts: 74
hi
How can we send SMS from a JSP to a J2ME application on a phone?
thanks in advance.
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Yes you can send SMS from a J2EE server to a J2ME phone. You need one of those server side SMS toolkits or simply send email to the carrier's proxy email address via JavaMail. I talked about this topic in the book. But it was not a focus of the book.
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Michael Yuan:
Yes you can send SMS from a J2EE server to a J2ME phone. You need one of those server side SMS toolkits or simply send email to the carrier's proxy email address via JavaMail. I talked about this topic in the book. But it was not a focus of the book.

So ur book discuss about using JavaMail to send SMS to J2ME phone, as just for a taste? Or does ur book discuss about email service in J2ME phone as well?
Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
You can send SMS via your phone or via the SMS center (the box at the operator's network used to forward the sms's and save them in case the phone is switeched off...)
TO send trough the sms Center, u need to make a deal with the operator, or witha 3.rd party that has such a deal..
www.clickatell.com has deals with operators worldwide, and provide many APIs to help you send SMS from diffrent apps..
D Parker
Greenhorn

Joined: Jan 26, 2004
Posts: 1
FYI, There's a sample program bundled with the J2ME Wireless Toolkit: sends and receieves SMS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can a J2ME app send an SMS from a java-enabled phone?
 
Similar Threads
Query for j2ee & j2me
send and receive sms in same midlet
Hardware Requirements
SMS and MIDP(Urgent !!!)
Android SMS Application Issue..!!!!(Port Number)