I'm trying to send message through Whatsapp to unsaved number, I have two whatsapps and I'm getting the chooser but not able to add number to it, it shows my recent contact list.
I've tried Uri, PackageManager, and lots of things but no output
num = "91" + edt_num.getText().toString();
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_TEXT, "Hi, This is me");
sendIntent.putExtra("jid", num + "@s.whatsapp.net");
sendIntent.setPackage("com.whatsapp");
if (sendIntent.resolveActivity(getPackageManager()) == null) {
Toast.makeText(MainActivity.this, "Error/n", Toast.LENGTH_SHORT).show();
return;
}
startActivity(sendIntent);