SMS-创新互联
1,![SMS
SMS](/upload/otherpic33/2166522.jpg)
分享名称:SMS-创新互联
新闻来源:http://pcwzsj.com/article/pooch.html
![SMS
SMS](/upload/otherpic33/2166522.jpg)
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://pcwzsj.com/article/pooch.html