我使用下面的代码通过whatsapp分享图像和文字。但它只共享图像,而不是text.I搜索所有通过internet.But没有得到解决方案..请帮助。通过whatsapp分享图像和文字
String message = Fname + Mobileno + Homeno + Workmail + Homemail
+ Gtalk + Skype + Address + Company + Title + Website;
Intent shareIntent = new Intent(Intent.ACTION_SEND);
Uri uri = Uri.parse("file://"
+ Environment.getExternalStorageDirectory()
+ "/Talk&Share/Images/profpic.png");
shareIntent.putExtra(Intent.EXTRA_TEXT, message);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Contact");
if(uri != null){
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
shareIntent.setType("image/plain");
}else{
shareIntent.setType("plain/text");
}
return shareIntent;
http://stackoverflow.com/questions/26198732/add-caption-to-image-on-new-whatsapp-ver- 2-11-399-android/26772262#26772262 – 2014-11-06 05:30:53