Gmail无法将空文件附加到网址图片android?

时间:2016-04-04 09:58:03

标签: android android-intent android-sharing

我无法与网址共享图片:(我使用的是通用图片库)

    Uri screenshotUri = Uri.parse("http://www.myurl.com/upload/Files/Walpaper/Logo/201631512317849.jpg");
    String text = "Look at my awesome picture";
    Intent shareIntent = new Intent();
    shareIntent.setAction(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_TEXT, text);
    shareIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
    shareIntent.setType("image/*");
    shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);

0 个答案:

没有答案