【发布时间】:2013-04-30 10:01:54
【问题描述】:
其实我想通过intent在Instagram上分享图片。
I found this solution for images saved on SD card 但我想为现场图片做同样的事情(链接)。
我试过了
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("image/*");
shareIntent
.putExtra(
Intent.EXTRA_STREAM,
Uri.parse("http://www.alliswell.biz/images/products/art/alliswell_signs/yellowB.jpg"));
shareIntent.setPackage("com.instagram.android");
startActivity(shareIntent);
但它不起作用。
编辑
当我开始上面的意图时,它会打开我安装的 Instagram 应用程序并立即完成 Instagram 和 toast 消息“无法下载文件”
实际上它并没有分别解析链接和图像。应该是什么问题?
【问题讨论】:
-
定义不工作。任何错误信息?
-
“无法下载文件”。消息来自 Instagram 应用
-
这里有同样的问题。试图找出图像是否存在。