jeudi 14 janvier 2016

Android SQLite or File

I am new to android development and i am trying to make a trivia application, i need to store the data relating to questions somewhere and i am not entirely sure where to store it. I plan to have multiple people playing so i need each person to have the same questions.

Basically i planned to have a list of categories and within each category i had question objects which contained information regarding the question such as the answers and question its self. However if i use a database i believe non of this would be needed due the questions being stored in tables which would represent categories.

In terms of speed what would be better, to store it in a database or to read from a file every time the application is loaded and store the data within a data structure?

Thanks in advance.

Regards.

Aucun commentaire:

Enregistrer un commentaire