我正在尝试通过whatsapp共享音频文件。它可以与gmail,messenger等其他应用完美配合,但是在whatsapp中文件可以共享但不能作为音频播放((似乎不支持该文件)有人可以帮助我吗?
Code-
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("audio/ogg");
//share.putExtra(Intent.EXTRA_SUBJECT,"subject");
Uri uri = Uri.parse("android.resource://com.workingbed.bigmantyronereeeeeee/raw/" + R.raw.yolooo);
share.putExtra(Intent.EXTRA_STREAM,uri);
//share.putExtra("sms_body","Ringtone File :");
mContext.startActivity(Intent.createChooser(share, "Share sound"));