SMS
1,
SmsManager smsManager = SmsManager.getDefault(); String sms = smsEditText.getText().toString(); ArrayList<String> 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);