public SendSMS ( string body, string phoneNumber ) : void | ||
body | string | |
phoneNumber | string | |
return | void |
public void SendSMS(string body, string phoneNumber)
{
var smsUri = Uri.Parse("sms:" + phoneNumber);
var smsIntent = new Intent(Intent.ActionView, smsUri);
smsIntent.PutExtra("sms_body", body);
StartActivity(Intent.CreateChooser(smsIntent, "Send SMS with"));
}
}