Instagram的选项在共享意向的Andr​​oid [英] Instagram Option in Sharing Intent Android

查看:125
本文介绍了Instagram的选项在共享意向的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,这将在不同的社交网站共享内容的应用程序。 问题是,我不能看到共享意图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的选项在共享意向的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆