This is what works for me.
The body parameter is not read by whatsapp, use Intent.EXTRA_TEXT instead.
By setting "phoneNumber", you specify the contact to open in whatsapp.
Intent sendIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("smsto:" + "" + phoneNumber + "?body=" + encodedMessage)); sendIntent.putExtra(Intent.EXTRA_TEXT, message); sendIntent.setPackage("com.whatsapp"); startActivity(sendIntent);
source share