SmsManager smsManager = SmsManager.getDefault(); try{
PendingIntent pendingIntentNew = PendingIntent.getBroadcast(this, 0, new Intent("SMS_SENT"), 0);
PendingIntent pendingIntentBack = PendingIntent.getBroadcast(this, 0, new Intent("SMS_DELIVERED"), 0);
List<String> texts = smsManager.divideMessage(sendContent);
sendMultipartTextMessage(phoneNum,null,List<String> texts,null,null);
for(String text : texts){
smsManager.sendTextMessage(phoneNum, null, text, pendingIntentNew, pendingIntentBack);
}
用这段代码将超过70字的短信分割成几条成功发送出去了,接收方收到多条短信,现在需要将接收方收到的多条短信合并成一条,据说是在发送时将分割的每部分加上标记,如何实现呢?多谢
超长短信合并smsstring
PendingIntent pendingIntentNew = PendingIntent.getBroadcast(this, 0, new Intent("SMS_SENT"), 0);
PendingIntent pendingIntentBack = PendingIntent.getBroadcast(this, 0, new Intent("SMS_DELIVERED"), 0);
List<String> texts = smsManager.divideMessage(sendContent);
sendMultipartTextMessage(phoneNum,null,List<String> texts,null,null);
for(String text : texts){
smsManager.sendTextMessage(phoneNum, null, text, pendingIntentNew, pendingIntentBack);
}
用这段代码将超过70字的短信分割成几条成功发送出去了,接收方收到多条短信,现在需要将接收方收到的多条短信合并成一条,据说是在发送时将分割的每部分加上标记,如何实现呢?多谢
超长短信合并smsstring
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货