Libgdx Quiz-使用SQLite数据库? [英] Libgdx Quiz- Using SQLite Database?

查看:255
本文介绍了Libgdx Quiz-使用SQLite数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在学习Android开发,并使用Libgdx框架,现在有一个多月的时间,并希望创建一个测试应用程序。该应用程序我想创建是我会如何来存储所有的问题,回答测验和IM卡的情况。

I have been learning Android development and using the Libgdx framework for over a month now and want to create a test app. The app i want to create is a quiz and im stuck on the situation on how i am going to store all the questions, answers.

作为一个Web开发人员多年的数据库,当然想到我,但libgdx不具备的sqlite这让我停留在如何实现存储,而无需使用一个数据库的大力支持。

Being a web developer for many years i of course thought of a database but libgdx doesn't have much support for sqlite which leaves me stuck on how to achieve the storing without using a database.

反正是否知道任何方式使用SQLite与libgdx或者我如何能做到这一点的另一种方式,我将AP preciate的帮助,谢谢你。

Does anyway know any way to use sqlite with libgdx or how i can achieve this another way, i would appreciate the help, thank you.

推荐答案

我不会使用SQLite在这种情况下,去了。由于这只是一个测试应用程序,你可能不会有上百万的问题,并不会需要做任何类型的查询中,我建议你使用JSON来存储你的问题。

I would not go with SQLite in this case. Since it is just a test app and you probably won't have millions of questions and won't need to do any kind of querying, I'd suggest you to use JSON to store your questions.

借助 JSON 支持LibGDX是pretty的好,它适用于所有平台,井。看一看在维基看怎么有些例子使用它。

The JSON support of LibGDX is pretty good and it works on all platforms as well. Have a look at the wiki to see some examples of how to use it.

此外,它意味着你可以轻松地编辑您的问题,因为它是一个可读的文件格式。

Furthermore it means that you can easily edit your questions, since it is a human readable file format.

这篇关于Libgdx Quiz-使用SQLite数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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