How I can send massage from my app to Special number in whatsapp , I know this code to share massage to group or contact on whatsapp
Intent waIntent = new Intent(Intent.ACTION_SEND);
waIntent.setType("text/plain");
String text = "Sorry For Interruption,I'm Just Trying Something";
waIntent.setPackage("com.whatsapp");
if (waIntent != null) {
waIntent.putExtra(Intent.EXTRA_TEXT, text);//
startActivity(Intent.createChooser(waIntent,"Share with"));
but I want send massage to Special number like "966xxxxxxx" how I can do that ?
this is a Solution :
Where id is what's app uri like 966123456789@s.whatsapp.net
you can use this code for sending data to perticuler a number
thats realy works for me enjoy your code:)