Android - Sending SMS
In Android, you can use SmsManager API or devices Built-in SMS application to send SMS's. In this tutorial, we shows you two basic examples to send SMS message − SmsManager API SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage("phoneNo", null, "sms message", null, null); Built-in SMS application Intent sendIntent = new Intent(Intent.ACTION_VIEW); sendIntent.putExtra("sms_body", "default content"); sendIntent.setType("vnd.android-dir/mms-sms"); startActivity(sendIntent); Of course, both need SEND_SMS permission . <uses-permission android:name="android.permission.SEND_SMS" /> Apart from the above method, there are few other important functions available in SmsManager class. These methods are listed below − Sr.No. Method & Description 1 ArrayList<String> divideMessage(String text) This method divides a message text into several fragments, none bigger than the maximu...