Hi All,
I want to send messages by using my android app to the my WhatsApp member's (My WhatsApp number's and WhatsApp groups). Is it possible or not if It is possible, please give me some directions.
I have send the messages to the WhatsApp by using...
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
String text = "YOUR TEXT HERE";
PackageInfo info=pm.getPackageInfo("com.whatsapp", PackageManager.GET_META_DATA);
intent.setPackage("com.whatsapp");
intent.putExtra("", "");
intent.putExtra(Intent.EXTRA_TEXT, text);
startActivity(Intent.createChooser(intent, "Share with"));
but I want to send messages directly by my android application to WhatsApp.
please help , your help would be highly appreciated.
Thanks in advance.
Regards
Rahul
I want to send messages by using my android app to the my WhatsApp member's (My WhatsApp number's and WhatsApp groups). Is it possible or not if It is possible, please give me some directions.
I have send the messages to the WhatsApp by using...
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
String text = "YOUR TEXT HERE";
PackageInfo info=pm.getPackageInfo("com.whatsapp", PackageManager.GET_META_DATA);
intent.setPackage("com.whatsapp");
intent.putExtra("", "");
intent.putExtra(Intent.EXTRA_TEXT, text);
startActivity(Intent.createChooser(intent, "Share with"));
but I want to send messages directly by my android application to WhatsApp.
please help , your help would be highly appreciated.
Thanks in advance.
Regards
Rahul
Last edited: