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     }  

posted @ 2015-03-23 15:27  jenson138  阅读(234)  评论(0编辑  收藏  举报