title: Send text and image to specific contact (whatsapp)
body: <p>I wanted to know how I can send text and image to a specific whatsapp contact. I found some code to view a specific contact, but not to send data.</p>
  
  <pre><code>Uri uri = Uri.parse("smsto:" + smsNumber);
  Intent i = new Intent(Intent.ACTION_SENDTO, uri);
  i.putExtra("sms_body", smsText);  
  i.setPackage("com.whatsapp");  
  startActivity(i);
  </code></pre>
  
  <p>But that code just opening the chat history, but doesn't take the text and image and send it. </p>
  
  <p>I also try the below code for send image and text via whatsApp but that ask for choose the contact for send</p>
  
  <pre><code>Intent shareIntent = new Intent();
  shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
      | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
  shareIntent.setAction(Intent.ACTION_SEND);
  shareIntent.setType("*/*");
  shareIntent.putExtra(Intent.EXTRA_TEXT, sendString);
  shareIntent.putExtra(Intent.EXTRA_STREAM, bmpUri);
  shareIntent. setPackage ("com. whatsapp");
  startActivity(shareIntent);
  </code></pre>
  
  <p>If that functionality is possible then please give me a suggestion for this.</p>