如何播放从我自己的应用程序一个消息到WhatsApp的联系人? [英] How to broadcast a message from my own app to contacts on WhatsApp?
本文介绍了如何播放从我自己的应用程序一个消息到WhatsApp的联系人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我可以从我的应用程序发送一条消息通过该显示code..BUT到WhatsApp的如何发送给很多联系人一次
意图waIntent =新的意图(Intent.ACTION_SEND);
waIntent.setType(text / plain的);
字符串文本=对不起中断,我只是想的东西;
waIntent.setPackage(com.whatsapp);
如果(waIntent!= NULL){
waIntent.putExtra(Intent.EXTRA_TEXT,文本); //
startActivity(Intent.createChooser(waIntent,分享));
解决方案
您不能。 WhatsApp的,用户可以只选择一个联系人或pre-现有组的时间,你不能改变任何关系。
Now i can send a message from my app to whatsapp by this shown code..BUT how to send to many contacts at one time
Intent waIntent = new Intent(Intent.ACTION_SEND);
waIntent.setType("text/plain");
String text = "Sorry For Interruption,I'm Just Trying Something";
waIntent.setPackage("com.whatsapp");
if (waIntent != null) {
waIntent.putExtra(Intent.EXTRA_TEXT, text);//
startActivity(Intent.createChooser(waIntent,"Share with"));
解决方案
You can't. WhatsApp allows the user to pick only one contact or pre-existing group at a time, and you cannot change that in any way.
这篇关于如何播放从我自己的应用程序一个消息到WhatsApp的联系人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文