List of utility methods to do SMS Send
boolean | sendSms(@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, ... |
void | shareViaSms(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")); |
String | getMultipleSmsJoinOn() get Multiple Sms Join On final String manufacturer = android.os.Build.MANUFACTURER; if (manufacturer.toLowerCase(Locale.US).contains("samsung")) { return ","; } else { return ";"; |