我使用以下代码发送/共享图像文件到whatsapp / facebook / bluetooth等。 但是我收到错误消息“找不到处理Intent的活动{act = android.intent.action.SEND flg = 0x1(有剪辑)(有额外内容)}”
我在代码中缺少什么? (我期待whatsapp / facebook / bluetooth等选项,同时点击按钮并发送到所选选项)
public void onclick_st(View view) {
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(filepath)));
startActivity(sendIntent);
}