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.
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.
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.
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
Check the following link for details on how to send an SMS from an Android app
http://mobiforge.com/developing/story/sms-messaging-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With