Instagram的选项在共享意向的Android [英] Instagram Option in Sharing Intent Android
问题描述
我的工作,这将在不同的社交网站共享内容的应用程序。 问题是,我不能看到共享意图Instagram的选项。我可以看到蓝牙,电子邮件,短信等,但不能看到Instagram的。我安装我的设备上Instagram的应用程序。 任何一个可以告诉我的问题是这样??
I am working on an application which will be sharing content on different social sites. The problem is that I cant see the Instagram option in sharing intent. I can see bluetooth, mail, messaging etc but cant see Instagram. I have Instagram application installed on my device. Can any one tell me what issue is this??
其次是有什么办法可以自定义共享意图的选项?就像我想要把它排除消息。这可能吗?
Secondly is there any way to customize the options in Sharing Intent? Like I want to exclude messaging from it. Is it possible?
推荐答案
您好我在这里发送图像到Instagram的:
hi here i'm sending an image to instagram:
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(MediaStore.Images.Media
.insertImage(getContentResolver(), source, title, description)));
shareIntent.setType("image/jpeg");
startActivity(Intent.createChooser(shareIntent,
getResources().getString(R.string.send_to)));
这只是回答了这个问题的第一部分。
this only answers the first part of the question.
这篇关于Instagram的选项在共享意向的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!