File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Terence Doyle
Ranch Hand
Posts: 328
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, use the J2ME Wireless Messaging API (WMA). You will soon be able to send/receive MMS messages with the WMA v2.0.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WMA v1.0 (SMS) is supported on many phones including most Nokia models in the last year.
 
Terence Doyle
Ranch Hand
Posts: 328
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to both of you.
I'll get investigating right away.
 
Anushe Khan
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
How can we send SMS from a JSP to a J2ME application on a phone?
thanks in advance.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic