短信的发送
两种发送方式:
一、利用系统的短信发送程序
1.Intent 发送一个隐式意图
Intent intent=new Intent(Intent.ACTION_SENDTO);
Uri data=Uri.parse("smsto:"+"号码:例如15555215556");
intent.setData(data);
intent.putExtra("sms_body",etContent.getText().toString());
starActivity(intent);
2.另外一种隐式意图
Intent intent =new Intent(Intent.ACTION_VIEW);
intent.setType('address","15555215556"