I am developing an android app and I need to send a message to specific contact from WhatsApp. I tried this code:
Uri mUri = Uri.parse(\"smsto:+999999999\");
Uri mUri = Uri.parse("smsto:+90000900000");
Intent mIntent = new Intent(Intent.ACTION_SENDTO, mUri);
mIntent.setPackage("com.whatsapp");
mIntent.putExtra("chat",true);
startActivity(Intent.createChooser(mIntent, "Share with"));
Works great to send message to specific contact on WhatsApp from my android app