您好我试图通过意图传递超过1种类型的数据。我想显示标题,然后是网页链接。它一次只显示一个,但不是两个。有人可以帮我吗?
private void shareWithOtherApps()
{
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_TITLE, title);
i.putExtra(Intent.EXTRA_TEXT, url);
try
{
startActivity(Intent.createChooser(i, "Share News"));
//startActivity(i);
}
catch (android.content.ActivityNotFoundException ex)
{
//ToastHelper.MakeShortText("app have not been installed.");
}
}`