Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Java Application communicating via SMS

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java library for your puposes
http://mobiles.unipro.ru/smlib.html
 
You can't have everything. Where would you put it?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic