Bookmark Topic Watch Topic
  • New Topic

What are the ways to send SMS from a Java Program to a Mobile phone?  RSS feed

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi there

I am designing a web application In which I need to send a message on mobile device(Mobile Number Verification Purpose)

I want to know what are the options available in java for this task?

Thanks
 
Bartender
Posts: 1603
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
This doesn't directly answer your question, but TelephoneManager offers a way to read the telephone number from the SIM using the getLine1Number() method.

I'm not sure if it will work with all combinations of devices / radio technologies / Android versions /etc, but it does work on my Nexus 5 running the current version of Lollipop with a Canadian GSM/LTE carrier's USIM.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
This thread is refernce from this thread
http://www.coderanch.com/t/649873/java/java/APIs-SMS-Java

@Ron
My requirement you got it I just need to verify user mobile number by sending a code to them

But so far I have seen the documentation of APIs for this they require countinusally pinged GSM modem with a serial port.

I am designing a web application which I will deploy on some online hosting(No GSM PHONE connceted) thst time

So how and what can I use in this seneraio?
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have already told you not to create multiple threads. Please return to your one thread which is still open.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!