Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMS and MIDP(Urgent !!!)

 
lucky bhatia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to send SMS using my j2me application. I have seen WMA APIs and have code with me for this but for MIDP 2.0 only . Just want to know do MIDP1.0 support WMA for sending sms as it is in MIDP2.0. If not then is there any other API with will support MIDP1.0 devices for sending SMS.
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What phone/carrier are you using?

There are no MIDP 1.0 APIs for sending SMS messages. Even the 2.0 APIs are optional and not supported by every phone.

Your best bet will be to setup a server that can act as a gateway for your messages and use an HTTP POST operation to send data from your J2ME client to your server.

Alternatively, some carriers have e-mail aliases for sending text messages to phones via e-mail. You could write a J2ME application that sends messages to an SMTP server which would then be converted to SMS messages and sent to the target.

William Frantz
http://SprintDevelopers.com
 
lucky bhatia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks William.

I took a note of your reply. As my application is still in design phase I will take care of it.
I have one more query is it possible to know Midp version of mobile connecting to server.
Actually whenever request for a midlet.jar arrives on Web Server, I want to push Midlet.jar(version midp1.0) to mobile supporting Midp1.0 and Midlet.jar(version midp2.0) to mobile supporting Midp2.0. To do this i need to know the midp version on server.
Kindly tell me is it possible ?? if yes kindly provide some details.
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to push Midlet.jar(version midp1.0) to mobile supporting Midp1.0 and Midlet.jar(version midp2.0) to mobile supporting Midp2.0.
You can actually do this on Sprint.

All Sprint devices include a URL to an RDF file with details about that specific device. For example, this is the RDF file for my phone:
http://device.sprintpcs.com/LG/PM325/PM325V16.rdf

From that page, I can see that this phone supports MIDP 1.0 and CLDC 1.0. You take it from there.

No promises for other carriers, but most WAP browsers will include some kind of browser identifer in the headers. If you build a library of device IDs matched to capabilities, you can provision the appropriate application.

William Frantz
http://SprintDevelopers.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic