SMS-创新互联

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

创新互联主要从事做网站、网站制作、网页设计、企业做网站、公司建网站等业务。立足成都服务叠彩,10多年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:13518219792
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri
                        .parse("sms:" + phoneEditText.getText().toString()));
                intent.putExtra("sms_body", smsEditText.getText().toString());
                startActivity(intent);

当前题目:SMS-创新互联
文章网址:http://ybzwz.com/article/pooch.html