我用这个代码在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);
你必须使用WhatsApp的组链接。在你的代码,你必须有地方在那里,用户可以粘贴群链接,然后在你的代码更改,解析乌里欲行
Uri.parse("https://chat.whatsapp.com/<group_link>");