Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg::java Examples

 
suresh senapathi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I need java example to send text sms to mobile from pc.

I tried through many sites but all are depend on other 3rd party thing.

Any one help me for freewares like demo thing.

Thanks in advance.

 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't do this without a 3rd party, unless your PC has a SIM card built in. And you simply aren't going to find a completely free party for this, since sending SMS messages costs money. I don't think anyone is willing to give away money like that. Perhaps you don't have to pay but you still end up "paying" by looking at a lot and a lot of ads, and probably also ads inside the SMS messages.

And please use a meaningful subject line.. "Reg::java Examples" isn't really saying anything. You can edit your post to change it.
 
suresh senapathi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

Thanks for the reply.
I am not asking complete freware.
we are sending sms through some sites right?
Like that for testing purose i asking.

Thanks again.
 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can simply connect some mobile phone to your pc via bluetooth and then execute AT commands on that mobile phone to send SMS.

Here's example that i've copied from google:


Note that such AT commands may differ on different mobile phones and other ones may not support sending sms via AT commands at all.
 
Campbell Ritchie
Sheriff
Posts: 48402
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a "beginning" question. Moving.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18008
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most SMS services can be addressed via a "magic email address", which usually is something like "15550003321@phoneco.com". Just send a 1-line email of 140 characters or less to that address from the PC. Works great.

The hard part is making it general-purpose. Since the email address varies depending on the receiver's phone service provider, you have either know what that provider's email address conventions are or go through a generic gateway service that can find out and route it for you.

There's a fairly comprehensive list of the email address forms on the Wikipedia, including providers in both the US and in India.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic