- 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
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.