【发布时间】:2014-06-26 17:11:59
【问题描述】:
我正在尝试通过 Twitter 应用分享一些文本和图像。图片来源是一个网址。 以下是我的代码:
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 应用程序共享。我还收到一条消息“无法加载图像”。这段代码有什么问题?
【问题讨论】:
-
如果有任何解决方法请告诉我
-
希望followign链接可以帮助到你。 [链接][1] [1]:stackoverflow.com/questions/20015410/…
标签: android android-intent twitter uri android-sharing