In my android application after user fill textbox of mobile no and message which he wants to send to that mobile number and click send button, that message should be sent to that mobile number directly without making the user to click send button in WhatsApp app.
Below is the code I am using for sending WhatsApp message.
Uri mUri = Uri.parse("https://api.whatsapp.com/send?phone=9197xxxxxx88&text='Hello User'");
Intent intent = new Intent("android.intent.action.VIEW", mUri);
intent.setPackage("com.whatsapp");
startActivity(intent);