我正在尝试通过Twitter应用程序分享一些文本和图像。 图像源是Web URL。 以下是我的代码:
sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("*/*");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "I am reading this publication, check it out here: "+bookmark_url+"");
sharingIntent.putExtra(android.content.Intent.EXTRA_STREAM, Uri.parse("http://example.com/images/thumbs/file_name.jpg"));
但是仅有文字被通过Twitter应用程序分享。我也收到一条信息,上面写着“图片无法加载”。这段代码有什么问题?