Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any SMS API is available for android to send SMS from android Application?

Tags:

android

sms

api

In my application i want to send a SMS to user ,they are registered to the application without the user interaction. Is it possible in android? yes means how to do that because i don't want to open the default SMS application available in android.

like image 413
Krishna Avatar asked Apr 11 '12 06:04

Krishna


People also ask

Is there any free API to send SMS?

TextBelt Open Source. TextBelt Open Source is a REST API that sends outgoing SMS. It uses a free mechanism for sending texts, different from the more reliable paid version available at https://textbelt.com. This project uses carrier-specific gateways to deliver your text messages for free, and without ads.

How can I send SMS through application?

Before starting your application, Android studio installer will display following window to select an option where you want to run your Android application. Now you can enter a desired mobile number and a text message to be sent on that number. Finally click on Send SMS button to send your SMS.


2 Answers

Its very simple to send sms using android code-

SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(NUMBER, null, MESSAGE, null, null);

and if you want to capture all the events related to sms like sms sent,delivered then you can refer the link provided in above post by @Ian Newson. Thanks

like image 180
Sandeep Avatar answered Oct 13 '22 12:10

Sandeep


Check the following link for details on how to send an SMS from an Android app

http://mobiforge.com/developing/story/sms-messaging-android

like image 21
Ian Newson Avatar answered Oct 13 '22 13:10

Ian Newson