2

So sharing on social channels is a hot topic these days. I have done some research on how to share to Facebook, Twitter, LinkedIn and G+.

Lets start with an example.. I want to share text, and an image to 4 social channels (Facebook, Twitter, LinkedIn and G+), but without the user adding more text.

My findings so far:

  1. You can use Intent.ACTION_SEND but there are a lot of limitations like:

    • You need to make your own chooser if you want to filter the social channels
    • Sending text and image is not possible without the user adding more text
  2. Using default social channel APIs, but:

    • Can be overhead, you only want to share.
    • Are not always stable.
  3. There are some open source libraries you can use, but they are not as complete as you may think

  4. Use paid services (do I need to say more...)

So in conclusion, I need help. What is the way to go?.

4

2 回答 2

2

您无需为Intent.ACTION_SEND. 特别是因为列出的应用程序旨在处理此意图。

这应该很好,因为您宁愿让用户选择他们想要分享的内容,然后将他们限制为一个。我想说,如果您想分享,那么请坚持使用 android 上的标准并使用ACTION_SEND.

当用户可能更喜欢使用应用程序 B 时,您不能期望他们拥有应用程序 A。不要考虑约束。

另外,作为您对ACTION_SEND.. 限制的评论,我建议您重新阅读文档,因为我在任何地方都看不到该限制:http: //developer.android.com/reference/android/content/Intent.html#ACTION_SEND

于 2013-02-22T14:47:38.167 回答
1

您可以使用支持 10 个社交提供商的SocialAuth,它为您提供分享文本、上传图片、获取相册、提要等功能。

于 2013-03-08T13:05:01.800 回答