I am trying to send image and text to whatsapp directly to specific recipient, but only text is send
String msg = "Message here";
Uri bitmapUri= Uri.parse(imageUrl);
Uri uri = Uri.parse("http://api.whatsapp.com/send?phone="+smsNumber +"&text="+msg);
try {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(uri+"?image="+bitmapUri));
startActivity(intent);
} catch(Exception e) {
Toast.makeText(this, "Error/n" + e.toString(), Toast.LENGTH_SHORT).show();
}