开发者

Quiz in xml or database for Android

I have a question about making a quiz app.

Is it ok to have the questions in an xml file and load that. we are talking about alot of questions. Ma开发者_运维问答ybe 300 or so. Or should this be stored in somekind of a database instead?

Also if you have any links for this that would be good.


The advantage of using a db is that you can categorize the questions and use db functions such as selecting a random row, or a specific question category.

You could also just use the assets folder and store text (or xml) files there. This is probably simplier but less flexible.


store your questions in database, then only you can access that questions easily by question id.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜