android 发送短信功能
1 private void sendSMS(String num,String smsBody) { 2 String phoneNum = "smsto:" + num; 3 Uri smsToUri = Uri.parse(phoneNum); 4 Intent intent = new Intent(Intent.ACTION_SENDTO, smsToUri); 5 intent.putExtra("sms_body", smsBody); 6 startActivity(intent); 7 }