I want to share some image to instagram in my app. With facebook, twister... I know, I can do it by using Share Itent But wit instagram I don't know. Please help me. Thanks in advance!
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Here is a solution by using share intent
This is sample
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);
标签:
android-intent