01.
try
{
02.
03.
Intent sendIntent =
new
Intent(Intent.ACTION_VIEW);
04.
sendIntent.putExtra(
"address"
,
"9971227563,9990900909"
);
05.
sendIntent.putExtra(
"sms_body"
, sendSMSStringOnCustomCheckIn());
06.
sendIntent.setType(
"vnd.android-dir/mms-sms"
);
07.
startActivity(sendIntent);
08.
09.
}
catch
(Exception e) {
10.
Toast.makeText(getApplicationContext(),
11.
"SMS faild, please try again later!"
,
12.
Toast.LENGTH_LONG).show();
13.
e.printStackTrace();
14.
}