如何保存与不同的ID对服务器端的分数? [英] How to save score on server side with different Id's?

查看:137
本文介绍了如何保存与不同的ID对服务器端的分数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的机器人问答游戏和不知道如何写code,它保存每个用户的比分在比赛结束后与服务器端的ID不同的充。这样我就可以过了些日子请与高分得主。我preFER使用SQLite数据库,但不很了解这一点。如果有人知道这个问题,plz帮助我一些例如code的。

I am working on android quiz game and dont know how to write code that save score of every user at the end of game with differnt id on server side. So that i can check the winner with highscore after some days. I prefer to use sqlite database but dont know much about this. If someone know about this problem plz help me with example of some code.

在此先感谢!

任何人有比这更好的答案?

Anyone have better answer than this?

推荐答案

有不同的 Android中使用存储选项。选择一个适合你的最好的之一。

There are different storage options available in android. Choose the one that suits you the best.

至于sqlite的,是其良好的选项的存储结构化数据的私有数据库的。去,通过这个简单的sqlite的样本这里 rel=\"nofollow\">和的这里

As far as Sqlite, Yes its good option for storing structured data in a private database. Go, through this simple Sqlite sample here , here and here

如果你想保持的成就,排行榜,以及您的移动然后谷歌播放实时多人统计游戏服务应该是你的正确通过提到的选项
@MarvinLabs。

If you want to maintain achievements, leaderboards, and real-time multiplayer stats to your mobile then Google Play Games services should be your option as rightly mentioned by @MarvinLabs.

这篇关于如何保存与不同的ID对服务器端的分数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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