【发布时间】:2019-10-12 14:59:13
【问题描述】:
我想将我的 csv 文件分享给任何操作,例如蓝牙、发送到电子邮件等
final String filename = Environment.getExternalStorageDirectory() + "/Folder" + "/" + "mycsv.csv";
Intent sharingIntent = new Intent();
sharingIntent.setAction(Intent.ACTION_SEND);
sharingIntent.putExtra(Intent.EXTRA_STREAM, filename);
sharingIntent.setType("text/comma_separated_values/csv");
startActivity(Intent.createChooser(sharingIntent, "share file with"));
输出将是 no request containst no data
【问题讨论】:
标签: android