Currently I have a Button
which will share an URL with a friend by using WhatsApp.
However, is there a way to return them back to my app after the message has been sent?
Here is my code so far.
whatsapp_item.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent whatsapp_intent = new Intent();
whatsapp_intent.setAction(Intent.ACTION_SEND);
whatsapp_intent.putExtra(Intent.EXTRA_TEXT, "Hey, i think you will like this. Check it out " + url);
whatsapp_intent.setType("text/plain");
whatsapp_intent.setPackage("com.whatsapp");
startActivity(whatsapp_intent);
}
});