I want to make an application where if I click some button, it will send a message on whatsapp. I have already enter message and cellphone numbers with :
String nomor = hp.getText().toString();
String message = "Hallo";
startActivity(new Intent(Intent.ACTION_VIEW,
Uri.parse(
String.format("https://api.whatsapp.com/send?phone=%s&text=%s",
nomor, message))));
The problem is that it does not auto send, so we must push the send button... Anybody can help me?