Akash Verma Akash Verma - 1 year ago 82
Android Question

How to share application data to whatsapp friends??

I am developing an android application in which I want to share my data through WhatsApp and hike(to my friends in phone contact) or mail to my friends.

Can someone please explain me with lines of codes...

Answer Source

Like most social Android apps, WhatsApp listens to intents to share media and text. Simply create an intent to share text, for example :

Intent sendIntent = new Intent();
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download