【发布时间】:2016-08-02 12:57:18
【问题描述】:
Intent share = new Intent(Intent.ACTION_SEND);
share.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://" + ContextID.getPackageName() + "/" + ResourceID));
share.setType("audio/*");
ContextID.startActivity(Intent.createChooser(share, "Condividi il suono"));
上面的代码在 Gmail 上运行良好,而 Whatsapp 给出了一个敬酒消息,例如“共享文件失败,请再试一次”
也许我和这个人有同样的问题:Intent.ACTION_SEND Whatsapp
但是我怎样才能暂时将我的资源复制到sd卡上然后共享呢?
【问题讨论】:
标签: android android-intent resources share whatsapp