Android 发送短信自定义手机号自定义短信内容

 Intent intent = new Intent(Intent.ACTION_VIEW);
                intent.setType("vnd.android-dir/mms-sms");
                //address为数据表中存放电话号码的字段
                intent.putExtra("address", "");//要发短信的手机号,如果没有传空串就行
                intent.putExtra("sms_body", "mdm.china-railway.com.cn");//短信内容
                startActivity(intent);

猜你喜欢

转载自blog.csdn.net/qq_36488374/article/details/81231590