Android 如何仅以一种共享意图共享两种不同的类型?

Android 如何仅以一种共享意图共享两种不同的类型?,android,share,Android,Share,在我的应用程序中,有一个共享按钮调用此方法: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); String audioClipFileName="bell.mp3"; sendIntent.setType("audio/mp3"); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://com.gru

在我的应用程序中,有一个共享按钮调用此方法:

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);   
String audioClipFileName="bell.mp3";
sendIntent.setType("audio/mp3");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://com.gruchka.guessthesound/" + R.raw.bell));
startActivity(Intent.createChooser(sendIntent, "Get help with:"));
此按钮共享音频文件:“bell.mp3”。 我希望此按钮也共享音频文件下面的文本。
我如何解决这个问题?谢谢使用下面的设置类型行:

sendIntent.putExtra(Intent.EXTRA_TEXT, "YOUR_TEXT");

只有在支持它的应用程序中才起作用。

我向你提出另一个问题:这是我所做的,但意图类型是音频/mp3,需要其他内容无所谓,只需在setType行下方添加这一行