on-internet
← Community

How to open Whatsapp group by clicking a button and getting its contact in a listview in android?

Stack Overflow ·

How to open any Whats App group at the click of a button and then get all the contact numbers in it in a list view? I am trying to open a group in whats app with the help of given code but when i click on this button nothing is showing. Intent intentWhatsapp = new Intent(Intent.ACTION_VIEW); String url = "https://chat.whatsapp.com/<link>"; intentWhatsapp.setData(Uri.parse(url)); intentWhatsapp.setPackage("com.whatsapp"); startActivity(intentWhatsapp); I think there can be two forms. 1- Either the WhatsApp group whose contacts we want to get is present in the WhatsApp in our mobile and we are a

Comments

Sign in or sign up to comment and upvote.

No comments yet.