Android Utililty Methods SMS Send

List of utility methods to do SMS Send

Description

The list of methods to do SMS Send are organized into topic(s).

Method

booleansendSms(@Nonnull Context context, @CheckForNull String number, @Nullable String text)
Sends an SMS message to the given number with the passed text.
boolean success = true;
if (hasTelephony(context)) {
    if (number == null
            || !PhoneNumberUtils.isWellFormedSmsAddress(number)) {
        number = ""; 
        success = false;
    Intent smsIntent = new Intent(Intent.ACTION_SENDTO,
...
voidshareViaSms(Context context, String subject, String text)
share Via Sms
Intent intent = new Intent();
intent.setType("text/plain");
intent.setData(Uri.parse("sms:"));
intent.setAction(Intent.ACTION_VIEW);
intent.putExtra("sms_body", text);
context.startActivity(Intent.createChooser(intent, "Share via SMS"));
StringgetMultipleSmsJoinOn()
get Multiple Sms Join On
final String manufacturer = android.os.Build.MANUFACTURER;
if (manufacturer.toLowerCase(Locale.US).contains("samsung")) {
    return ",";
} else {
    return ";";