我正在开发一个应用程序,它将在不同的社交网站上共享内容。 问题是我在分享 Intent 中看不到 Instagram 选项。我可以看到蓝牙、邮件、消息等,但看不到 Instagram。我的设备上安装了 Instagram 应用程序。 谁能告诉我这是什么问题??
其次,有什么方法可以自定义共享 Intent 中的选项吗?就像我想从中排除消息一样。可能吗?
最佳答案
您好,我正在向 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)));
这只回答了问题的第一部分。
关于android - 共享 Intent Android 中的 Instagram 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11308626/