私は別のサウンドのアプリを持っています。私は、テキストと一緒に音(オーディオ)を共有したいと思います。音声とテキストを一緒に共有する
私は音だけを共有している場合、それは動作します:
share.putExtra(Intent.EXTRA_STREAM, Uri.parse(Environment.getExternalStorageDirectory().toString() + "/audio.mp3"));
share.setType("audio/mp3");
sharetext.putExtra(Intent.EXTRA_TEXT,"This should be under the audio file after sharing");
startActivity(Intent.createChooser(share, "Share via..."));
しかし、まだ音声のみが共有されます:
share.putExtra(Intent.EXTRA_STREAM, Uri.parse(Environment.getExternalStorageDirectory().toString() + "/audio.mp3"));
share.setType("audio/mp3");
startActivity(Intent.createChooser(share, "Share via..."));
は、今私は、テキストを追加しようとしました。
どのように動作しますか? これができない場合は、これを行う別の方法がありますか? ありがとうございます! :)
'ACTION_SEND'実装が、同じ' Intent'で 'EXTRA_TEXT' *と*' EXTRA_STREAM'の両方をサポートする必要はありません。 – CommonsWare