【发布时间】:2016-03-19 08:54:47
【问题描述】:
我是分享意图概念的新手,我想将我的应用程序中的图像和文本分享到其他应用程序,如 whatsapp 等。我尝试了这个,但一个文本内容正在分享,我的要求是当我分享文本和图像时,它将与图像一起显示在什么应用程序中,请任何人帮助我如何得到这个
在我的代码下面
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT,decsription_text.getText().toString()+imagelink);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Write the title what ever you want");
startActivity(Intent.createChooser(shareIntent, "Share Via..."));
我的图片是从服务器获取的图片地址
Picasso.with(getApplicationContext()).load((News_Updates.listData.get(pos)).getNewsImage()).into(Imageviewsample);
【问题讨论】: