在android中使用share for instagram

时间:2012-07-02 16:52:30

标签: android-intent

我想在我的应用中与Instagram分享一些图片。 有了facebook,twister ......我知道,我可以通过使用Share Itent来实现 但机智instagram我不知道。 请帮我。 提前谢谢!

1 个答案:

答案 0 :(得分:2)

以下是使用共享意图的解决方案

这是示例

Intent share = new Intent(Intent.ACTION_SEND);
                share.setType("image/jpeg");
                share.putExtra(Intent.EXTRA_STREAM,
             Uri.parse("file://"+Environment.getExternalStorageDirectory()+"/Pictures/jusgramm.jpg"));
                //share.putExtra(Intent.EXTRA_STREAM,data);
                startActivityForResult(Intent.createChooser(share, "Share Image Via"),SHARE_PIC_REQUEST);