Android 发短信

     SmsManager manager = SmsManager.getDefault();
      manager.sendTextMessage("10086",null,"cxyl",null,null);

=======

//     PendingIntent pi=PendingIntent.getActivity(this, 0, new Intent(this,TestSMS.class),0);
//     SmsManager sms=SmsManager.getDefault();
//     sms.sendTextMessage(phoneNumber, null, messages, pi, null);

 

 

<uses-permission android:name="android.permission.SEND_SMS"></uses-permission>

你可能感兴趣的:(android)