aspose file tools*
The moose likes Java Micro Edition and the fly likes Sending and Recieving SMS from a java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Sending and Recieving SMS from a java application" Watch "Sending and Recieving SMS from a java application" New topic
Author

Sending and Recieving SMS from a java application

Tumaini Kilimba
Greenhorn

Joined: Nov 15, 2006
Posts: 16
Dear Sirs et Madames,
Happy new year to all. I am thinking about creating java database application which can receive SMS's (the text will be a barcode) from mobile phone users and also be able to send an automated reply (details of the product whose barcode was sent as SMS) from the database. I am at a loss as to where to start, my research led me to try SMSLib (an SMS API), but the documentation and available material is so obscure that I have not been able to get anything running, it also required me to download the Java Communications API which unfortunately is incompatible with a 64-bit OS. Forgetting all I have just said (so I can get a clean start without biasing your answers to match what I have been attempting, as I may have been doing stuff wrong) I would greatly appreciate some completely fresh advice and pointers on how I can get going on such a project. My hardware is:

Machine: Windows 7 x64
Modem: EC168C

Thanking you in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
The first step might be to select a network provider through which you can send and receive SMS. This will cost you money, since such services are not free to use. Once you have done that you'll have access to the provider's documentation on how to integrate your software with their network.


Ping & DNS - my free Android networking tools app
Tumaini Kilimba
Greenhorn

Joined: Nov 15, 2006
Posts: 16
Hello Ulf, thanks for the quick response. What are the questions I need to ask of them (the network providers)? Also, is it not possible to create a prototype without having to go through the network provider? Are there no workarounds to that? Because if one uses AT commands, one can get their gsm modem to send or receive messages without involving the service provider (after all, they still get their money as each text message is still charged the standard rate), so in similar fashion, can one not create a prototype application of that sort without going to the service provider. If not, what would I need from the service provider when I go see them, what should I ask from them?

Thanks alot, and sorry for the many questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42599
    
  65
Well, if using a local phone that way works for you, so much the better. Obviously, the server would have to run on that same machine, but I'm sure you've thought of that.

The list of questions to take to the provider would essentially be your list of SMS-related requirements.
Tumaini Kilimba
Greenhorn

Joined: Nov 15, 2006
Posts: 16
Ok thanks... so where do I start, how does one create a Java application that sends and receives SMS messages?
Mariusz Sxxxx
Greenhorn

Joined: Jan 20, 2011
Posts: 3
Please install sun WTK, and find folder apps/WMADemo
in this folder you will find simple sms sender and sms receiver
BR.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending and Recieving SMS from a java application