0
试图通过使用意图共享将图像发送到Facebook和Whatsapp。然而,似乎在代码中, 但无法在WhatsApp的和Facebook发送任何错误,它提供了一个敬酒:无法使用意图共享图像分享Android
共享失败,请再试一次
这里是我使用的代码,想知道是什么造成了这个?
Intent shareIntent = new Intent();
public void shareIt(View view)
{
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.setType("image/jpeg");
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///data/user/0/obx.com.futurister/files/newImage.jpg"));
startActivity(Intent.createChooser(shareIntent, "Share image using"));
}