SmsManager smsMessager = SmsManager.getDefault();
Intent i = new Intent("SENT_SMS_ACTION");
PendingIntent pi = PendingIntent.getBroadcast(context, 0, i, 0);
ArrayList<String> msgs = smsMessager.divideMessage("短信内容");
for (String msg : msgs) {
smsMessager.sendTextMessage("目的地号码",null, msg, pi, null);
}
android发送短信
最新推荐文章于 2023-06-26 01:14:41 发布