SMS-创新互联
1,
当前文章:SMS-创新互联
文章转载:http://pwwzsj.com/article/pooch.html

SmsManager smsManager = SmsManager.getDefault();
String sms= smsEditText.getText().toString();
ArrayList smses = smsManager.divideMessage(sms);
for (String s : smses) {
smsManager.sendTextMessage(phoneEditText.getText()
.toString(),null, s, null, null);
Toast.makeText(MainActivity.this, "发送成功", Toast.LENGTH_LONG)
.show();
}
2,调用系统
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri
.parse("sms:" + phoneEditText.getText().toString()));
intent.putExtra("sms_body", smsEditText.getText().toString());
startActivity(intent);
当前文章:SMS-创新互联
文章转载:http://pwwzsj.com/article/pooch.html