1
I have an application that today displays the contacts in the calendar that have Whatsapp, and there it is possible to excrever a message in this application and send to the users of Whatsapp, but when calls the Whatsapp goes without any contact selected, then there in Whatsapp is made the selection of to whom will be sent the message. I would like to be able to make the selection in my app, and already send to Whatsapp the selected contacts, someone has already done it?
Currently this part of the code is like this?
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setPackage("com.whatsapp");
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
Remembering that should be done firing to multiple contacts, for a contact I have a part of the app that does, but I need to do the shooting for multiple contacts, would be on the screen of Whatsapp that opens just come already with selected contacts.
Leonardo, the answer below met you or need some more information?!
– viana