在 Android 中进行社交分享的最佳方式 [英] Best way for social sharing in Android

查看:24
本文介绍了在 Android 中进行社交分享的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种将信息分享到社交网络的方法.我找到了两种可能的解决方案:

I've been looking for a way to share information to social networks. I've found 2 possible solutions:

  • 查找已安装的应用程序并发送一个意图(如 Android 在其库中使用)
  • 使用社交网络 API

在寻找快速实现方法时,我说使用已安装的应用程序,但如果进行自定义和通用化,我认为第二个选项是最好的.

When looking for quick ways to implements i say use the installed apps for that but if it goes customization and generalization i think the second option is the best.

我很难决定一个是否超过另一个.

I've a hard time deciding if one outweighs the other or not.

所以我的问题是:最好的方法是什么?我建议的方法之一还是完全不同的方法?

So my question is: What is the best approach? One of the ones i suggested or a whole different way?

推荐答案

我曾与 Facebook 合作API,我知道这是一个非常好的 API.它会查看是否安装了原生 Facebook 应用,如果没有,它会在您的屏幕上弹出一个小弹出窗口来执行操作,如果是,则使用该应用来执行您的操作.

I have worked with the Facebook API and I know that it's a really good one. It looks if a native Facebook app is installed, if not it pops a little popup on your screen where it does it things, if yes, it uses that app to do your things.

我认为您必须对所有社交网络采取相同的方法:检查应用是否存在.如果是,请使用.如果没有,使用自己的实现

I think you have to take the same approach for all your Social Networks: check if app exist. if yes, use. if no, use own implementation

这篇关于在 Android 中进行社交分享的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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