如何将短信发送给多个收件人? [英] How to send a SMS to many recipients?

查看:903
本文介绍了如何将短信发送给多个收件人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将短信发送给多个收件人在android系统?我想短信发送到多个接收者在我的应用程序。我知道这code:

How to send a SMS to many recipients in android? I want to send a SMS to many receivers in my application. I know this code:

Uri smsToUri = Uri.parse("smsto:" + 10086);
                Intent intent = new Intent(
                        android.content.Intent.ACTION_SENDTO, smsToUri);
                String message = "hello";
                // message = message.replace("%s", StoresMessage.m_storeName);
                intent.putExtra("sms_body", message);
                startActivity(intent); 

这工作收件人。但如何通过使用ACTION_SENDTO故意将消息发送给多个收件人?这实在是太说,如何调用第三方应用程序发送短信给多个收件人的电话?

This work for single recipient. But How to send the message to many recipients by using "ACTION_SENDTO" intent? That is too say, how to call the third-party application to send a SMS to many recipients in phone?

推荐答案

发送短信到多个号码:

String strnum="10086;10086;10087;10089";
Uri smsToUri = Uri.parse("smsto:" + strnum);

或使用 SmsManager 看到这个帖子发送短信到多个号码

or for Sending SMS to Multiple numbers using SmsManager see this post

<一个href=\"http://stackoverflow.com/questions/8998655/unable-to-send-sms-using-smsmanager-in-android\">Unable派Android中使用SmsManager短信

Unable to send sms using SmsManager in Android

这篇关于如何将短信发送给多个收件人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆