aspose file tools*
The moose likes Java Micro Edition and the fly likes SMS and MIDP(Urgent !!!) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "SMS and MIDP(Urgent !!!)" Watch "SMS and MIDP(Urgent !!!)" New topic
Author

SMS and MIDP(Urgent !!!)

lucky bhatia
Greenhorn

Joined: Jul 02, 2004
Posts: 4
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

Joined: Dec 08, 2004
Posts: 102
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

Joined: Jul 02, 2004
Posts: 4
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

Joined: Dec 08, 2004
Posts: 102
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
 
Don't get me started about those stupid light bulbs.
 
subject: SMS and MIDP(Urgent !!!)