使用 Android 中的 google/gtalk 帐户
我正在开发一款多人游戏,该游戏将通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不会。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 :|