This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Application communicating via SMS

 
Lindikaya Ntshinga
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to develop an Java application that waits/listens for an SMS from GSM mobile devices. Once the app recieves the message it extracts the text pay load and excutes the necessary business logic.
I would like to know:
* How does the cellphone know the cel number of the Java/j2ee app when sending the msg.
* Do I need to pay the carrier or do I need any special configurations on my application in order to send and recieve SMS.
* Can messages actually be sent to Java application by normal non-J2ME enabled phones
* Can the app extract the payload if the message is not coming from a non-Java phone.
Please help.
 
Erik Pragt
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Lindikaya Ntshinga,
Your question has actually nothing to do with J2ME. I will explain why.
Any (well, more than 99%) telephone can send SMS messages, which has nothing to do with Java. Normally, J2ME applications run on Java handsets like mobile phone. What you want is to have a Java application connected to a mobile phone.
In order to have something like this is to connect a mobile phone through a serial cable to a desktop (or similar) machine, and have then communicate to each other.
Thus, to answer you first question: the number of the java application is the number of the mobile phone connected to the application.
The second question: You (and others) need to pay to send messages, not to receive them.
Third: Yes, as we are talking about simple sms communication..
4) This is the hardest part. I have absolutely no idea how the telephone will communicate to the desktop machine throught the serial cable (if this is the way). You'd might have a J2ME application for this which responds to incoming SMS messages, opens an http connection to your Java application, and transfers the data. But I don't know if this is possible.
I hope this can give you a push into the right direction!
Good luck,
Erik
 
Max Khukhro
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java library for your puposes
http://mobiles.unipro.ru/smlib.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic