code: public static Intent sendSms(String to, String message) {
          Uri smsUri = Uri.parse("tel:" + to);
          Intent intent = new Intent(Intent.ACTION_VIEW, smsUri);
          intent.putExtra("address", to);
          intent.putExtra("sms_body", message);
          intent.setType("vnd.android-dir/mms-sms");
          return intent;
      }
docs: Send SMS message using built-in app
  
  @param to      Receiver phone number
  @param message Text to send