使用 Android 中的 google/gtalk 帐户

发布于 2024-10-09 00:09:35 字数 195 浏览 0 评论 0原文

我正在开发一款多人游戏,该游戏将通过 XMPP 聊天传输数据来运行(速度不是问题,它是一款回合制游戏)。现在我计划使用 asmack 库。

有没有一种方法可以使用来自 android 的 gtalk 凭据,而无需通过登录/密码对话框明确询问用户?我应该在 android 清单文件中设置任何权限吗?

谢谢

最诚挚的问候, 尼古拉

I'm developing a multiplayer game that is going to work by transmitting data over XMPP chats (speed is not an issue, it's a turn-based game). Right now I'm planning on using the asmack library.

Is there a way to use the gtalk credentials from android without explicitly asking the user with a login/password dialog? Any permissions I should set in the android manifest file?

Thanks

Best regards,
Nicola

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滿滿的愛 2024-10-16 00:09:35

不会。GTalk 应用程序不会将其用户凭据(特别是密码)暴露给任何第三方应用程序,因为它会破坏设备用户的隐私。

您可以做一些尝试来找出用户名(即使我认为这是不可能的),但现在以任何方式密码。

祝一切顺利。如果您能做到,请告诉我。抱歉让您有些沮丧:|

No. GTalk app wont expose its user credentials specifically password to any third party app since it kills privacy of device user.

You can do head scratch may b some pulling as well to figure out to get username (even which I don't think is possible) but now in any way password.

All the best though. Let me know if you are able to do it. Sorry for bit of discouragement :|

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文