Programmatic SMS [closed]

Use http://www.twilio.com/ They have a REST interface to send SMS’s and even to establish phone calls or receive phone calls. You even get 30$ credits to try it out. Def. the cheapest solution you will find.

Send a SMS via intent

I have developed this functionality from one Blog. There are 2 ways you can send SMS. Open native SMS composer write your message and send from your Android application This is the code of 1st method. Main.xml <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout android:id=”@+id/relativeLayout1″ android:layout_width=”fill_parent” android:layout_height=”fill_parent” xmlns:android=”http://schemas.android.com/apk/res/android”> <Button android:id=”@+id/btnSendSMS” android:layout_height=”wrap_content” android:layout_width=”wrap_content” android:text=”Send SMS” android:layout_centerInParent=”true” android:onClick=”sendSMS”> </Button> </RelativeLayout> … Read more

Cheapest way to send SMS for number verification? [closed]

I’d suggest using TextAnywhere: Text Anywhere They provide API’s (C, Java, .Net, PHP etc) for several languages and provide a multitude of rates and packages depending on the volume of texts sent. They’re also very flexible with regards to payment – they do pre-pay, PAYG and fixed monthly limits. Pricing We used them for a … Read more

Sending SMS in iOS with Swift

Not sure if you really got the answer. I was in a similar hunt and came across this solution and got it to work. import UIKit import MessageUI class ViewController: UIViewController, MFMessageComposeViewControllerDelegate { @IBOutlet weak var phoneNumber: UITextField! override func viewDidLoad() { super.viewDidLoad() } @IBAction func sendText(sender: UIButton) { if (MFMessageComposeViewController.canSendText()) { let controller = … Read more

Broadcast Receiver within a Service

as your service is already setup, simply add a broadcast receiver in your service: private final BroadcastReceiver receiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if(action.equals(“android.provider.Telephony.SMS_RECEIVED”)){ //action for sms received } else if(action.equals(android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED)){ //action for phone state changed } } }; in your service’s onCreate do … Read more

How to delete an SMS from the inbox in Android programmatically?

“As of Android 1.6, incoming SMS message broadcasts (android.provider.Telephony.SMS_RECEIVED) are delivered as an “ordered broadcast” — meaning that you can tell the system which components should receive the broadcast first.” This means that you can intercept incoming message and abort broadcasting of it further on. In your AndroidManifest.xml file, make sure to have priority set … Read more

Can we delete an SMS in Android before it reaches the inbox?

Yes. Despite some negative reactions to this question, there are legitimate uses for SMS interception. For example: automating phone number verification, services which are provisioned via SMS (though generally this should be done with data SMS), or for applications which otherwise improve the user experience by processing specially-formatted messages in order to show them in … Read more

How to pre-populate the sms body text via an html link

It turns out this is 100% possible, though a little hacky. If you want it to work on Android you need to use this format: <a href=”https://stackoverflow.com/questions/6480462/sms:/* phone number here */?body=/* body text here */”>Link</a> If you want it to work on iOS, you need this: <a href=”https://stackoverflow.com/questions/6480462/sms:/* phone number here */;body=/* body text here … Read more