从我的Android应用在WhatsApp的如何开团

问题描述 投票:0回答:1

我用这个代码在WhatsApp的加入到组,但是如果我在一组今年已经,然后打开后,我收到我已经一组举杯。如何只开组如何打开一组没有面包?

Intent intentWhatsAppGroup = new Intent(Intent.ACTION_VIEW); Uri uri =
Uri.parse("whatsapp://chat?code=***GroupID***");
intentWhatsAppGroup.setData(uri);
intentWhatsAppGroup.setPackage("com.whatsapp");
startActivity(intentWhatsAppGroup);
android android-intent whatsapp whatsapi
1个回答
0
投票

你必须使用WhatsApp的组链接。在你的代码,你必须有地方在那里,用户可以粘贴群链接,然后在你的代码更改,解析乌里欲行

Uri.parse("https://chat.whatsapp.com/<group_link>");
© www.soinside.com 2019 - 2024. All rights reserved.