
- Forum posts: 77
Aug 6, 2016, 3:03:32 PM via Website
Aug 6, 2016 3:03:32 PM via Website
How to add whatsapp share intent to my app??
Aug 6, 2016, 3:03:32 PM via Website
Aug 6, 2016 3:03:32 PM via Website
How to add whatsapp share intent to my app??
Aug 10, 2016, 4:30:18 PM via Website
Aug 10, 2016 4:30:18 PM via Website
Try this code snippet
Intent whatsappIntent = new Intent(Intent.ACTION_SEND);
whatsappIntent.setType("text/plain");
whatsappIntent.setPackage("com.whatsapp");
whatsappIntent.putExtra(Intent.EXTRA_TEXT, "The text you wanted to share");
try {
activity.startActivity(whatsappIntent);
} catch (android.content.ActivityNotFoundException ex) {
ToastHelper.MakeShortText("Whatsapp have not been installed.");
}
Aug 11, 2016, 1:49:40 PM via Website
Aug 11, 2016 1:49:40 PM via Website
Thank you.. It's Working..
Aug 11, 2016, 11:39:08 PM via Website
Aug 11, 2016 11:39:08 PM via Website
Happy to help
Dec 17, 2016, 10:21:16 PM via Website
Dec 17, 2016 10:21:16 PM via Website
thanks man